forked from github/plane
* chore: swap input component with plane/ui package * chore: swap textarea component with plane/ui package * chore: swap button component with plane/ui package * chore: button component revamp * fix: button type fix * chore: secondary button revamp * chore: button props updated * chore: swap loader component with plane/ui package * fix: build error fix * chore: button component refactor * chore: code refactor * chore: swap toggle switch component with plane/ui package * chore: swap spinner component with plane/ui package * chore: swap progress bar componenet with plan/ui package * chore: code refactor
35 lines
1.1 KiB
TypeScript
35 lines
1.1 KiB
TypeScript
import Link from "next/link";
|
|
|
|
// layouts
|
|
import DefaultLayout from "layouts/default-layout";
|
|
// ui
|
|
import { Button } from "@plane/ui";
|
|
|
|
export const NotAWorkspaceMember = () => (
|
|
<DefaultLayout>
|
|
<div className="grid h-full place-items-center p-4">
|
|
<div className="space-y-8 text-center">
|
|
<div className="space-y-2">
|
|
<h3 className="text-lg font-semibold">Not Authorized!</h3>
|
|
<p className="mx-auto w-1/2 text-sm text-custom-text-200">
|
|
You{"'"}re not a member of this workspace. Please contact the workspace admin to get an invitation or check
|
|
your pending invitations.
|
|
</p>
|
|
</div>
|
|
<div className="flex items-center justify-center gap-2">
|
|
<Link href="/invitations">
|
|
<a>
|
|
<Button variant="neutral-primary">Check pending invites</Button>
|
|
</a>
|
|
</Link>
|
|
<Link href="/create-workspace">
|
|
<a>
|
|
<Button variant="primary">Create new workspace</Button>
|
|
</a>
|
|
</Link>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</DefaultLayout>
|
|
);
|