Skip to content

Commit

Permalink
chore: add learning hub theme (now CRNA) (#363)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Florent Mariotti <[email protected]>
  • Loading branch information
FlorentMr and Florent Mariotti authored Dec 18, 2024
1 parent b45887b commit 1605e5f
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,10 @@
import React from "react";

import { OdeClientProvider, ThemeProvider } from "@edifice-ui/react";
import { ThemeProvider } from "@cgi-learning-hub/theme";
import {
OdeClientProvider,
ThemeProvider as ThemeProviderEdifice,
} from "@edifice-ui/react";
import {
QueryCache,
QueryClient,
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 1605e5f

Please sign in to comment.