wip client to id

This commit is contained in:
2025-08-11 21:25:48 -03:00
parent 70e87e9526
commit 6e0e5f788d
13 changed files with 396 additions and 56 deletions

View File

@@ -16,6 +16,7 @@ export function Layout({ children }: { children: React.ReactNode }) {
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<Meta />
<Links />
</head>
@@ -34,14 +35,14 @@ export default function App() {
export function ErrorBoundary({ error }: Route.ErrorBoundaryProps) {
let message = 'Oops!'
let details = 'An unexpected error occurred.'
let details = 'Ocorreu um erro inesperado.'
let stack: string | undefined
if (isRouteErrorResponse(error)) {
message = error.status === 404 ? '404' : 'Error'
message = error.status === 404 ? '404' : 'Erro'
details =
error.status === 404
? 'The requested page could not be found.'
? 'A página solicitada não foi encontrada.'
: error.statusText || details
} else if (import.meta.env.DEV && error && error instanceof Error) {
details = error.message