chore(admin): temporarily disable upload feature
This commit is contained in:
+13
-4
@@ -80,11 +80,13 @@ function QuickAction({
|
||||
title,
|
||||
description,
|
||||
icon: Icon,
|
||||
disabled = false,
|
||||
}: {
|
||||
href: string;
|
||||
title: string;
|
||||
description: string;
|
||||
icon: typeof ClipboardList;
|
||||
disabled?: boolean;
|
||||
}) {
|
||||
return (
|
||||
<Card size="sm">
|
||||
@@ -95,11 +97,17 @@ function QuickAction({
|
||||
</CardTitle>
|
||||
<CardDescription>{description}</CardDescription>
|
||||
<CardAction>
|
||||
<Button variant="ghost" size="icon-sm" asChild>
|
||||
<Link href={href} aria-label={`Open ${title}`}>
|
||||
{disabled ? (
|
||||
<Button variant="ghost" size="icon-sm" disabled aria-label={`${title} disabled`}>
|
||||
<ArrowUpRight />
|
||||
</Link>
|
||||
</Button>
|
||||
</Button>
|
||||
) : (
|
||||
<Button variant="ghost" size="icon-sm" asChild>
|
||||
<Link href={href} aria-label={`Open ${title}`}>
|
||||
<ArrowUpRight />
|
||||
</Link>
|
||||
</Button>
|
||||
)}
|
||||
</CardAction>
|
||||
</CardHeader>
|
||||
</Card>
|
||||
@@ -348,6 +356,7 @@ export default async function AdminPage() {
|
||||
title="Video uploads"
|
||||
description="Publish and monitor platform jobs."
|
||||
icon={Upload}
|
||||
disabled
|
||||
/>
|
||||
<QuickAction
|
||||
href="/admin/backend"
|
||||
|
||||
Reference in New Issue
Block a user