mirror of
https://github.com/Steffo99/sophon.git
synced 2024-12-22 14:54:22 +00:00
🔧 Move the layout inside the app
This commit is contained in:
parent
875876b3a7
commit
637ef3a92e
1 changed files with 71 additions and 71 deletions
|
@ -37,6 +37,9 @@ import {ThemeProvider} from "./contexts/theme"
|
||||||
function App({..._}: RouteComponentProps) {
|
function App({..._}: RouteComponentProps) {
|
||||||
return React.useMemo(
|
return React.useMemo(
|
||||||
() => <>
|
() => <>
|
||||||
|
<LayoutThreeCol>
|
||||||
|
<LayoutThreeCol.Center>
|
||||||
|
<ThemedTitle level={1}/>
|
||||||
<ErrorCatcherBox>
|
<ErrorCatcherBox>
|
||||||
<Chapter>
|
<Chapter>
|
||||||
<SophonDescriptionBox/>
|
<SophonDescriptionBox/>
|
||||||
|
@ -101,6 +104,9 @@ function App({..._}: RouteComponentProps) {
|
||||||
/>
|
/>
|
||||||
</InstanceProvider>
|
</InstanceProvider>
|
||||||
</ErrorCatcherBox>
|
</ErrorCatcherBox>
|
||||||
|
<SophonFooter/>
|
||||||
|
</LayoutThreeCol.Center>
|
||||||
|
</LayoutThreeCol>
|
||||||
</>,
|
</>,
|
||||||
[],
|
[],
|
||||||
)
|
)
|
||||||
|
@ -111,15 +117,9 @@ export default function AppWrapper() {
|
||||||
return (
|
return (
|
||||||
<ThemeProvider>
|
<ThemeProvider>
|
||||||
<ThemedBluelib>
|
<ThemedBluelib>
|
||||||
<LayoutThreeCol>
|
|
||||||
<LayoutThreeCol.Center>
|
|
||||||
<ThemedTitle level={1}/>
|
|
||||||
<Reach.Router>
|
<Reach.Router>
|
||||||
<App default/>
|
<App default/>
|
||||||
</Reach.Router>
|
</Reach.Router>
|
||||||
<SophonFooter/>
|
|
||||||
</LayoutThreeCol.Center>
|
|
||||||
</LayoutThreeCol>
|
|
||||||
</ThemedBluelib>
|
</ThemedBluelib>
|
||||||
</ThemeProvider>
|
</ThemeProvider>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue