New formatting
This commit is contained in:
12
app/root.tsx
12
app/root.tsx
@ -46,7 +46,7 @@ export function ErrorBoundary() {
|
||||
<Link color="#646cff" onClick={() => location.reload()}>
|
||||
Refresh
|
||||
</Link>
|
||||
</Container>
|
||||
</Container>,
|
||||
);
|
||||
|
||||
const { status } = error;
|
||||
@ -74,7 +74,7 @@ export function ErrorBoundary() {
|
||||
<Link color="#646cff" onClick={() => history.go(-1)}>
|
||||
Go back
|
||||
</Link>
|
||||
</Container>
|
||||
</Container>,
|
||||
);
|
||||
|
||||
default:
|
||||
@ -90,7 +90,7 @@ export function ErrorBoundary() {
|
||||
<Link color="#646cff" onClick={() => location.reload()}>
|
||||
Reload
|
||||
</Link>
|
||||
</Container>
|
||||
</Container>,
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -124,7 +124,7 @@ export function meta() {
|
||||
|
||||
function getMarkup(
|
||||
loaderData: { [k: string]: any },
|
||||
child: ReactNode
|
||||
child: ReactNode,
|
||||
): JSX.Element {
|
||||
const Document = withEmotionCache(
|
||||
({ children }: { children: ReactNode }, emotionCache) => {
|
||||
@ -149,7 +149,7 @@ function getMarkup(
|
||||
colorModeManager={cookieStorageManagerSSR(
|
||||
typeof document === "undefined"
|
||||
? `chakra-ui-color-mode=${loaderData.theme}`
|
||||
: document.cookie
|
||||
: document.cookie,
|
||||
)}
|
||||
theme={theme}
|
||||
>
|
||||
@ -199,7 +199,7 @@ function getMarkup(
|
||||
</body>
|
||||
</html>
|
||||
);
|
||||
}
|
||||
},
|
||||
);
|
||||
|
||||
return <Document>{child}</Document>;
|
||||
|
Reference in New Issue
Block a user