-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into updated-role-schema
- Loading branch information
Showing
3 changed files
with
12,548 additions
and
6,788 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import Link from "next/link"; | ||
|
||
import { Button } from "@cooper/ui/button"; | ||
|
||
interface SubmissionFailureProps { | ||
message?: string; // Allow passing an optional error message | ||
} | ||
|
||
export function SubmissionFailure({ message }: SubmissionFailureProps) { | ||
return ( | ||
<div className="flex flex-col border-2"> | ||
<div className="z-10 -mb-4 h-4 w-full rounded-t-xl bg-gradient-to-r from-rose-400 via-yellow-400 to-blue-600" /> | ||
<div className="flex h-[80vh] w-full flex-col items-center justify-center space-y-6 rounded-xl bg-white px-8 py-32 text-cooper-blue-600"> | ||
<div className="text-5xl font-bold"> | ||
Whoops, your review is invalid... | ||
</div> | ||
<div className="max-w-3xl text-center text-2xl"> | ||
{message ? message : "Something went wrong. Please try again."} | ||
</div> | ||
<div className="flex justify-between space-x-8"> | ||
<Link href="/"> | ||
<Button>Return to home </Button> | ||
</Link> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} |
Oops, something went wrong.