chore(admin): temporarily disable upload feature

This commit is contained in:
2026-08-02 19:34:51 +07:00 Unverified
parent 88550be932
commit e5a6ad3e04
5 changed files with 53 additions and 32 deletions
+4 -12
View File
@@ -2,7 +2,7 @@
import { useRef, useState, useTransition } from "react";
import { toast } from "sonner";
import { CalendarClock, Upload } from "lucide-react";
import { Upload } from "lucide-react";
import { Button } from "@/components/ui/button";
import {
Card,
@@ -508,18 +508,10 @@ export function UploadForm() {
<Button
type="submit"
size="lg"
disabled={pending || uploadStatus !== "completed"}
disabled
>
{pending ? (
<CalendarClock data-icon="inline-start" />
) : (
<Upload data-icon="inline-start" />
)}
{pending
? "Sending…"
: scheduledAt
? "Schedule both uploads"
: "Upload to both platforms"}
<Upload data-icon="inline-start" />
Upload feature temporarily disabled
</Button>
</div>
</form>
+3 -6
View File
@@ -2,7 +2,6 @@
import { Button } from "@/components/ui/button";
import { Clapperboard, History, UploadCloud } from "lucide-react";
import Link from "next/link";
import { usePathname } from "next/navigation";
const items = [
@@ -37,13 +36,11 @@ export function UploadNavigation() {
return (
<Button
key={href}
asChild
disabled
variant={active ? "default" : "outline"}
>
<Link href={href} aria-current={active ? "page" : undefined}>
<Icon data-icon="inline-start" />
{label}
</Link>
<Icon data-icon="inline-start" />
{label}
</Button>
);
})}