diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..9e26dfe --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1 @@ +{} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 86defa8..a2fcd1e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -13,6 +13,7 @@ "filelist-utils": "^1.10.2", "nmr-load-save": "^0.17.3", "nmrium": "^0.43.1-pre.1692874523", + "react-science": "^0.26.2", "vite-plugin-pwa": "^0.16.4" }, "devDependencies": { diff --git a/package.json b/package.json index d790f9e..76a6cbe 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "filelist-utils": "^1.10.2", "nmr-load-save": "^0.17.3", "nmrium": "^0.43.1-pre.1692874523", + "react-science": "^0.26.2", "vite-plugin-pwa": "^0.16.4" }, "scripts": { @@ -25,7 +26,7 @@ "build": "cross-env NODE_OPTIONS=--max_old_space_size=4096 vite build --outDir build", "build-no-minify": "cross-env NO_MINIFY=true npm run build", "test": "jest --coverage", - "eslint": "eslint src/* ", + "eslint": "eslint . --cache", "eslint-fix": "npm run eslint -- --fix", "compile": "tsc --project tsconfig.esm.json && tsc --project tsconfig.cjs.json", "check-types": "tsc --project tsconfig.esm.json", @@ -59,4 +60,4 @@ "typescript": "^5.1.6", "vite": "^4.4.9" } -} +} \ No newline at end of file diff --git a/src/NMRiumWrapper.tsx b/src/NMRiumWrapper.tsx index 6e839c6..1a3706c 100644 --- a/src/NMRiumWrapper.tsx +++ b/src/NMRiumWrapper.tsx @@ -5,11 +5,14 @@ import events from './events'; import { useLoadSpectra } from './hooks/useLoadSpectra'; import { usePreferences } from './hooks/usePreferences'; import { useWhiteList } from './hooks/useWhiteList'; +import { RootLayout } from 'react-science/ui'; +import AboutUsModal from './modal/AboutUsModal'; const styles: Record<'container' | 'loadingContainer', CSSProperties> = { container: { height: '100%', width: '100%', + position: 'relative', }, loadingContainer: { @@ -102,13 +105,13 @@ export default function NMRiumWrapper() { }); return ( -