mirror of
https://github.com/aljazceru/mutiny-web.git
synced 2026-01-19 14:14:22 +01:00
reload on errors
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Title } from "solid-start";
|
||||
import { ButtonLink, DefaultMain, LargeHeader, SafeArea, SmallHeader } from "~/components/layout";
|
||||
import { Button, ButtonLink, DefaultMain, LargeHeader, SafeArea, SmallHeader } from "~/components/layout";
|
||||
|
||||
export default function ErrorDisplay(props: { error: Error }) {
|
||||
return (
|
||||
@@ -13,7 +13,7 @@ export default function ErrorDisplay(props: { error: Error }) {
|
||||
{props.error.name}</span>: {props.error.message}
|
||||
</p>
|
||||
<div class="h-full" />
|
||||
<ButtonLink href="/" intent="red">Dangit</ButtonLink>
|
||||
<Button onClick={() => window.location.href = "/"} intent="red">Dangit</Button>
|
||||
</DefaultMain>
|
||||
</SafeArea>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user