Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rewrap app/index.tsx #2069

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
19 changes: 9 additions & 10 deletions app/index.tsx
Expand Up @@ -5,6 +5,7 @@ import { CssBaseline, CssVarsProvider } from "@mui/joy";
import { SnackbarProvider } from "notistack";
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { Rewraper, VoidChildren } from "@archibara/react-rewraper";
import { StoreProvider } from "./core/store";
import { theme } from "./core/theme";
import { Router } from "./routes/index";
Expand All @@ -13,16 +14,14 @@ const container = document.getElementById("root");
const root = createRoot(container!);

root.render(
<StrictMode>
<CssVarsProvider theme={theme}>
<SnackbarProvider>
<CssBaseline />
<StoreProvider>
<Router />
</StoreProvider>
</SnackbarProvider>
</CssVarsProvider>
</StrictMode>,
<Rewraper>
<StrictMode />
<CssVarsProvider theme={theme} />
<SnackbarProvider />
<CssBaseline />
<StoreProvider children={VoidChildren} />
<Router />
</Rewraper>,
);

if (import.meta.hot) {
Expand Down
1 change: 1 addition & 0 deletions app/package.json
Expand Up @@ -16,6 +16,7 @@
"app:deploy": "yarn workspace app deploy"
},
"dependencies": {
"@archibara/react-rewraper": "latest",
"@babel/runtime": "^7.23.9",
"@emotion/react": "^11.11.3",
"@emotion/styled": "^11.11.0",
Expand Down
10 changes: 10 additions & 0 deletions yarn.lock
Expand Up @@ -22,6 +22,15 @@ __metadata:
languageName: node
linkType: hard

"@archibara/react-rewraper@npm:latest":
version: 0.0.6
resolution: "@archibara/react-rewraper@npm:0.0.6"
peerDependencies:
react: ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0 || ^19.0.0
checksum: 10/0fe00ae6d8fdefd7d79cae9758486731813d95b4c4aff38bedfce05a44f0722d4adcb4f0ddf0ad2d203877874f6e99f78e0b183714fbaf4673ee503f188b440a
languageName: node
linkType: hard

"@babel/code-frame@npm:^7.0.0, @babel/code-frame@npm:^7.21.4, @babel/code-frame@npm:^7.23.5":
version: 7.23.5
resolution: "@babel/code-frame@npm:7.23.5"
Expand Down Expand Up @@ -3092,6 +3101,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "app@workspace:app"
dependencies:
"@archibara/react-rewraper": "npm:latest"
"@babel/core": "npm:^7.23.9"
"@babel/runtime": "npm:^7.23.9"
"@emotion/babel-plugin": "npm:^11.11.0"
Expand Down