-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(ws): Notebooks 2.0 // Frontend // Workspaces table // Add MUI Su…
…pport (#183) Signed-off-by: Jenny <[email protected]> apply env var to activate MUI theme remove masthead toggle, fix padding add bottom padding Signed-off-by: Jenny <[email protected]> apply latest changes from MR and npm run test:fix
- Loading branch information
Showing
11 changed files
with
1,941 additions
and
97 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
export const BFF_API_VERSION = 'v1'; | ||
|
||
export enum Theme { | ||
Default = 'default-theme', | ||
MUI = 'mui-theme', | ||
// Future themes can be added here | ||
} | ||
|
||
export const isMUITheme = (): boolean => STYLE_THEME === Theme.MUI; | ||
const STYLE_THEME = process.env.STYLE_THEME || Theme.MUI; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,18 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom/client'; | ||
import { BrowserRouter as Router } from 'react-router-dom'; | ||
import { ThemeProvider, createTheme } from '@mui/material/styles'; | ||
import App from './app/App'; | ||
|
||
const root = ReactDOM.createRoot(document.getElementById('root')); | ||
const theme = createTheme({ cssVariables: true }); | ||
const root = ReactDOM.createRoot(document.getElementById('root')!); | ||
|
||
root.render( | ||
<React.StrictMode> | ||
<Router> | ||
<App /> | ||
<ThemeProvider theme={theme}> | ||
<App /> | ||
</ThemeProvider> | ||
</Router> | ||
</React.StrictMode>, | ||
); |
Oops, something went wrong.