1
Fork 0
mirror of https://github.com/Steffo99/sophon.git synced 2024-12-22 23:04:21 +00:00

🔧 Move the layout inside the app

This commit is contained in:
Steffo 2021-10-15 18:15:06 +02:00 committed by Stefano Pigozzi
parent 07fe793192
commit 64f9cd6a7c

View file

@ -37,6 +37,9 @@ import {ThemeProvider} from "./contexts/theme"
function App({..._}: RouteComponentProps) {
return React.useMemo(
() => <>
<LayoutThreeCol>
<LayoutThreeCol.Center>
<ThemedTitle level={1}/>
<ErrorCatcherBox>
<Chapter>
<SophonDescriptionBox/>
@ -101,6 +104,9 @@ function App({..._}: RouteComponentProps) {
/>
</InstanceProvider>
</ErrorCatcherBox>
<SophonFooter/>
</LayoutThreeCol.Center>
</LayoutThreeCol>
</>,
[],
)
@ -111,15 +117,9 @@ export default function AppWrapper() {
return (
<ThemeProvider>
<ThemedBluelib>
<LayoutThreeCol>
<LayoutThreeCol.Center>
<ThemedTitle level={1}/>
<Reach.Router>
<App default/>
</Reach.Router>
<SophonFooter/>
</LayoutThreeCol.Center>
</LayoutThreeCol>
</ThemedBluelib>
</ThemeProvider>
)