mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-17 10:26:39 +00:00
♻️ set approval state nullable
This commit is contained in:
@@ -45,7 +45,7 @@ export type ClientRow = {
|
||||
userEmail: string | null;
|
||||
niceId: string;
|
||||
agent: string | null;
|
||||
approvalState: "approved" | "pending" | "denied";
|
||||
approvalState: "approved" | "pending" | "denied" | null;
|
||||
archived?: boolean;
|
||||
blocked?: boolean;
|
||||
};
|
||||
@@ -430,12 +430,18 @@ export default function UserDevicesTable({ userClients }: ClientTableProps) {
|
||||
);
|
||||
case "denied":
|
||||
return <Badge variant="red">{t("denied")}</Badge>;
|
||||
default:
|
||||
case "pending":
|
||||
return (
|
||||
<Badge variant="secondary">
|
||||
{t("pending")}
|
||||
</Badge>
|
||||
);
|
||||
default:
|
||||
return (
|
||||
<span className="text-muted-foreground">
|
||||
N/A
|
||||
</span>
|
||||
);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user