Skip to content

Commit 6eee877

Browse files
Adjust error page
1 parent 15e228b commit 6eee877

File tree

3 files changed

+33
-34
lines changed

3 files changed

+33
-34
lines changed

src/app/callback/error/page.tsx

Lines changed: 0 additions & 33 deletions
This file was deleted.

src/app/callback/route.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,5 +51,5 @@ export async function GET(request: NextRequest) {
5151
}
5252
}
5353

54-
return NextResponse.redirect(new URL("/callback/error", request.url));
54+
return NextResponse.redirect(new URL("/error", request.url));
5555
}

src/app/error/page.tsx

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import {
2+
Text,
3+
Heading,
4+
Flex,
5+
CalloutRoot,
6+
CalloutIcon,
7+
CalloutText,
8+
Container,
9+
} from "@radix-ui/themes";
10+
import { ExclamationTriangleIcon } from "@radix-ui/react-icons";
11+
12+
export default function ErrorPage() {
13+
return (
14+
<Flex gap="4" direction="column" style={{ maxWidth: "430px" }}>
15+
<Heading size="8">Error</Heading>
16+
<Container>
17+
<CalloutRoot color="red" role="alert">
18+
<CalloutIcon>
19+
<ExclamationTriangleIcon />
20+
</CalloutIcon>
21+
<CalloutText>Something went wrong</CalloutText>
22+
</CalloutRoot>
23+
</Container>
24+
<Container>
25+
<Text size="3" align="center" color="gray">
26+
Couldn’t sign in. If you are not sure what happened, please contact
27+
your organization admin.
28+
</Text>
29+
</Container>
30+
</Flex>
31+
);
32+
}

0 commit comments

Comments
 (0)