-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Gunock/feature/crxjs-2
Feature/crxjs 2
- Loading branch information
Showing
21 changed files
with
381 additions
and
145 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
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
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import { lazy, Suspense } from 'react'; | ||
import { MemoryRouter, Route, Routes } from 'react-router-dom'; | ||
|
||
import AppShell from './AppShell/AppShell'; | ||
import PopupHeader from './components/PopupHeader/PopupHeader'; | ||
|
||
const HomePage = lazy(() => import('./features/HomePage/HomePage')); | ||
|
||
export default function App() { | ||
return ( | ||
<MemoryRouter> | ||
<AppShell> | ||
<Suspense fallback={<PopupHeader />}> | ||
<Routes> | ||
<Route path="/" element={<PopupHeader />} /> | ||
<Route path="/home-page" element={<HomePage />} /> | ||
</Routes> | ||
</Suspense> | ||
</AppShell> | ||
</MemoryRouter> | ||
); | ||
} |
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
File renamed without changes.
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,28 +1,11 @@ | ||
import {lazy, ReactElement, StrictMode, Suspense} from 'react'; | ||
import {createRoot} from 'react-dom/client'; | ||
import {MemoryRouter, Route, Routes} from 'react-router-dom'; | ||
import { StrictMode } from 'react'; | ||
import { createRoot } from 'react-dom/client'; | ||
|
||
import AppShell from './AppShell/AppShell'; | ||
import PopupHeader from './components/PopupHeader/PopupHeader'; | ||
|
||
const HomePage = lazy(() => import('./features/HomePage/HomePage')); | ||
|
||
function Index(): ReactElement { | ||
return ( | ||
<StrictMode> | ||
<MemoryRouter> | ||
<AppShell> | ||
<Suspense fallback={<PopupHeader />}> | ||
<Routes> | ||
<Route path="/" element={<PopupHeader />} /> | ||
<Route path="/home-page" element={<HomePage />} /> | ||
</Routes> | ||
</Suspense> | ||
</AppShell> | ||
</MemoryRouter> | ||
</StrictMode> | ||
); | ||
} | ||
import App from './App'; | ||
|
||
const root = createRoot(document.getElementById('root') as HTMLElement); | ||
root.render(<Index />); | ||
root.render( | ||
<StrictMode> | ||
<App /> | ||
</StrictMode> | ||
); |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.