Skip to content

Commit

Permalink
fix: realign home button icon on error boundary in admin ui (#759)
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanhopperlowe authored Dec 4, 2024
1 parent c05a5a5 commit cb447b7
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions ui/admin/app/components/errors/Error.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import { Link } from "@remix-run/react";
import { ArrowLeft, HomeIcon } from "lucide-react";

import { OttoLogo } from "~/components/branding/OttoLogo";
Expand All @@ -11,6 +10,7 @@ import {
CardHeader,
CardTitle,
} from "~/components/ui/card";
import { Link } from "~/components/ui/link";

export function Error({ error }: { error: Error }) {
return (
Expand All @@ -28,19 +28,21 @@ export function Error({ error }: { error: Error }) {
</p>
</CardContent>
<CardFooter className="flex gap-4">
<Button className="w-full" variant="secondary" asChild>
<Link to="/">
<HomeIcon className="mr-2" /> Go home
</Link>
</Button>
<Link
as="button"
className="w-full"
buttonVariant="secondary"
to="/"
>
<HomeIcon /> Go home
</Link>
<Button
className="w-full"
variant="secondary"
onClick={() => {
window.location.reload();
}}
onClick={() => window.location.reload()}
startContent={<ArrowLeft />}
>
<ArrowLeft className="mr-2" /> Go back
Go back
</Button>
</CardFooter>
</Card>
Expand Down

0 comments on commit cb447b7

Please sign in to comment.