Skip to content

Commit

Permalink
chore: add learning hub theme (now CRNA)
Browse files Browse the repository at this point in the history
  • Loading branch information
Florent Mariotti committed Dec 9, 2024
1 parent 9b392e1 commit b6bd3e4
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 8 deletions.
4 changes: 3 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
]
},
"dependencies": {
"@cgi-learning-hub/ui": "1.0.0",
"@cgi-learning-hub/icons": "develop",
"@cgi-learning-hub/theme": "develop",
"@cgi-learning-hub/ui": "develop",
"@dnd-kit/core": "6.1.0",
"@dnd-kit/sortable": "8.0.0",
"@dnd-kit/utilities": "3.2.2",
Expand Down
18 changes: 12 additions & 6 deletions frontend/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import React from "react";

import { OdeClientProvider, ThemeProvider } from "@edifice-ui/react";
import {
OdeClientProvider,
ThemeProvider as ThemeProviderEdifice,
} from "@edifice-ui/react";
import {
QueryCache,
QueryClient,
Expand All @@ -14,6 +17,7 @@ import { RouterProvider } from "react-router-dom";
import { MediaLibraryProvider } from "./providers/MediaLibraryProvider";
import { router } from "./routes";
import { setupStore } from "./store";
import { ThemeProvider } from "@cgi-learning-hub/theme";
import "~/i18n";

const rootElement = document.getElementById("root");
Expand Down Expand Up @@ -50,11 +54,13 @@ root.render(
app: "magneto",
}}
>
<ThemeProvider>
<MediaLibraryProvider>
<RouterProvider router={router} />
</MediaLibraryProvider>
</ThemeProvider>
<ThemeProviderEdifice>
<ThemeProvider themeId="crna">
<MediaLibraryProvider>
<RouterProvider router={router} />
</MediaLibraryProvider>
</ThemeProvider>
</ThemeProviderEdifice>
</OdeClientProvider>
</Provider>
<ReactQueryDevtools initialIsOpen={false} />
Expand Down
5 changes: 4 additions & 1 deletion frontend/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
"noUnusedParameters": true,
"noFallthroughCasesInSwitch": true,
"paths": {
"~/*": ["./src/*"]
"~/*": ["./src/*"],
"@cgi-learning-hub/icons": ["node_modules/@cgi-learning-hub/icons"],
"@cgi-learning-hub/theme": ["node_modules/@cgi-learning-hub/theme"],
"@cgi-learning-hub/ui": ["node_modules/@cgi-learning-hub/ui"]
},

/* Test */
Expand Down

0 comments on commit b6bd3e4

Please sign in to comment.