feat: complete admission workspace
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
||||
ClipboardCheck,
|
||||
Globe2,
|
||||
HeartPulse,
|
||||
Home,
|
||||
LayoutDashboard,
|
||||
ListChecks,
|
||||
Radio,
|
||||
@@ -19,7 +18,6 @@ import {
|
||||
} from "lucide-react";
|
||||
import type { LucideIcon } from "lucide-react";
|
||||
|
||||
import { Button } from "@/components/ui/button";
|
||||
import type { Permission, PublicAccount } from "@/modules/core/types";
|
||||
import { SignOutButton } from "@/modules/auth/components/SignOutButton";
|
||||
import { UserAvatar } from "@/modules/shared/components/UserAvatar";
|
||||
@@ -149,7 +147,6 @@ type AppShellProps = {
|
||||
};
|
||||
|
||||
export function AppShell({ children, account, permissions }: AppShellProps): React.ReactElement {
|
||||
const canCreateElder = permissions.includes("elder:create");
|
||||
const visibleNavGroups = navGroups
|
||||
.map((group) => ({
|
||||
...group,
|
||||
@@ -216,10 +213,6 @@ export function AppShell({ children, account, permissions }: AppShellProps): Rea
|
||||
</div>
|
||||
<UserAvatar avatarUrl={account.avatarUrl} name={account.name} size="sm" />
|
||||
</div>
|
||||
<Button size="sm" disabled={!canCreateElder}>
|
||||
<Home className="size-4" aria-hidden="true" />
|
||||
入住
|
||||
</Button>
|
||||
<SignOutButton />
|
||||
</div>
|
||||
</header>
|
||||
|
||||
Reference in New Issue
Block a user