Skip to content

Commit

Permalink
refresh page in GenericError
Browse files Browse the repository at this point in the history
  • Loading branch information
supertong committed Dec 7, 2024
1 parent efbb76b commit fc87ed2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions src/app/components/Error/GenericError.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use client";

import { Button, Heading, Text } from "@babylonlabs-io/bbn-core-ui";
import Link from "next/dist/client/link";
import Image from "next/image";

import BitcoinBlock from "@/app/assets/bitcoin-block.svg";
Expand Down Expand Up @@ -40,11 +39,14 @@ export default function GenericError({
{message}
</Text>
</div>
<Link href="/" passHref>
<Button variant="outlined" color="primary" className="w-full">
Back to homepage
</Button>
</Link>
<Button
variant="outlined"
color="primary"
className="w-full"
onClick={() => history.go()}
>
Back to homepage
</Button>
</div>
</div>
<Footer />
Expand Down

0 comments on commit fc87ed2

Please sign in to comment.