mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-07 16:16:37 +08:00
feat(frontend): add a dedicated 403 forbidden page
Show /403 instead of toasting or staying on the denied screen when the API returns 403 or a non-admin opens an admin route.
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
'use client';
|
||||
|
||||
import { ForbiddenPage } from '@/components/layout/forbidden-page';
|
||||
|
||||
export default function ForbiddenRoutePage() {
|
||||
return <ForbiddenPage />;
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
'use client';
|
||||
|
||||
import { ForbiddenPage } from '@/components/layout/forbidden-page';
|
||||
|
||||
/** Next.js convention: rendered when forbidden() is called. */
|
||||
export default function Forbidden() {
|
||||
return <ForbiddenPage />;
|
||||
}
|
||||
Reference in New Issue
Block a user