-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a03c3fa
commit 7f2c990
Showing
11 changed files
with
1,014 additions
and
566 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,16 @@ | ||
// from react_root.js | ||
import { render } from 'react-dom'; | ||
import { createRoot } from 'react-dom/client'; | ||
import { BrowserRouter } from 'react-router-dom'; | ||
import TopLevelApp from '../src/samples/TopLevelApp'; | ||
import './common.css'; | ||
|
||
const outletElement = document.getElementById('outlet'); | ||
|
||
if (outletElement) { | ||
render( | ||
const root = createRoot(outletElement); | ||
root.render( | ||
<BrowserRouter> | ||
<TopLevelApp /> | ||
</BrowserRouter>, | ||
document.getElementById('outlet') | ||
</BrowserRouter> | ||
); | ||
} |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { createTheme } from '@mui/material'; | ||
import { Theme } from '@mui/material/styles'; | ||
|
||
/** | ||
* Since makeStyles is now exported from @mui/styles package which does not know about Theme in the core package. | ||
* you need to augment the DefaultTheme (empty object) in @mui/styles with Theme from the core. | ||
*/ | ||
declare module '@mui/styles/defaultTheme' { | ||
interface DefaultTheme extends Theme {} | ||
} | ||
|
||
// eslint-disable-next-line import/prefer-default-export | ||
export const theme = createTheme({ | ||
palette: { | ||
primary: { | ||
contrastText: '#fff', | ||
dark: '#303f9f', | ||
light: '#7986cb', | ||
main: '#3f51b5' | ||
}, | ||
secondary: { | ||
contrastText: '#fff', | ||
dark: '#c51162', | ||
light: '#ff4081', | ||
main: '#f50057' | ||
} | ||
} | ||
}); |
Oops, something went wrong.