chore: add and run prettier

This commit is contained in:
Michael Zetterberg
2024-03-26 13:02:26 +01:00
parent e9349992f8
commit 083c57d0ca
27 changed files with 430 additions and 379 deletions

View File

@@ -5,8 +5,8 @@ import {
Scripts,
ScrollRestoration,
useRouteError,
} from '@remix-run/react';
import { SDKLoadingError } from './hooks/useApp';
} from "@remix-run/react"
import { SDKLoadingError } from "./hooks/useApp"
export function Layout({ children }: { children: React.ReactNode }) {
return (
@@ -31,20 +31,20 @@ export function Layout({ children }: { children: React.ReactNode }) {
<Scripts />
</body>
</html>
);
)
}
export default function App() {
return <Outlet />;
return <Outlet />
}
export function HydrateFallback() {
return <p>Loading...</p>;
return <p>Loading...</p>
}
export function ErrorBoundary() {
const error = useRouteError();
console.error(error);
const error = useRouteError()
console.error(error)
return (
<html lang="en">
@@ -68,5 +68,5 @@ export function ErrorBoundary() {
<Scripts />
</body>
</html>
);
)
}