Skip to content

Commit

Permalink
add @archibara/react-rewraper
Browse files Browse the repository at this point in the history
rewrap app/index.tsx
  • Loading branch information
archibara committed Mar 31, 2024
1 parent 95c3e61 commit 5a4532e
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
19 changes: 9 additions & 10 deletions app/index.tsx
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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

0 comments on commit 5a4532e

Please sign in to comment.