chore(admin): temporarily disable upload feature
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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>
|
||||
);
|
||||
})}
|
||||
|
||||
Reference in New Issue
Block a user