chore(admin): disable platform login buttons
This commit is contained in:
@@ -16,14 +16,13 @@ import {
|
||||
TabsList,
|
||||
TabsTrigger,
|
||||
} from "@/components/ui/tabs";
|
||||
import { ExternalLink, KeyRound } from "lucide-react";
|
||||
import { KeyRound } from "lucide-react";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
type LoginMethodProps = {
|
||||
name: string;
|
||||
description: string;
|
||||
href: string;
|
||||
configured: boolean;
|
||||
setupVariables: string[];
|
||||
resultVariables: string[];
|
||||
@@ -40,7 +39,6 @@ function EnvironmentBlock({ variables }: { variables: string[] }) {
|
||||
function LoginMethod({
|
||||
name,
|
||||
description,
|
||||
href,
|
||||
configured,
|
||||
setupVariables,
|
||||
resultVariables,
|
||||
@@ -73,20 +71,10 @@ function LoginMethod({
|
||||
</div>
|
||||
</CardContent>
|
||||
<CardFooter className="border-t">
|
||||
{configured ? (
|
||||
<Button asChild>
|
||||
<a href={href}>
|
||||
<KeyRound data-icon="inline-start" />
|
||||
Login with {name}
|
||||
<ExternalLink data-icon="inline-end" />
|
||||
</a>
|
||||
</Button>
|
||||
) : (
|
||||
<Button disabled>
|
||||
<KeyRound data-icon="inline-start" />
|
||||
Login with {name}
|
||||
</Button>
|
||||
)}
|
||||
<Button disabled>
|
||||
<KeyRound data-icon="inline-start" />
|
||||
Login with {name} temporarily disabled
|
||||
</Button>
|
||||
</CardFooter>
|
||||
</Card>
|
||||
);
|
||||
@@ -123,7 +111,6 @@ export default function AdminLoginPage() {
|
||||
<LoginMethod
|
||||
name="YouTube"
|
||||
description="Authorize the channel used for video uploads."
|
||||
href="/api/auth/youtube"
|
||||
configured={youtubeConfigured}
|
||||
setupVariables={[
|
||||
"BASE_URL",
|
||||
@@ -140,7 +127,6 @@ export default function AdminLoginPage() {
|
||||
<LoginMethod
|
||||
name="TikTok"
|
||||
description="Authorize the account used for profile data and video publishing."
|
||||
href="/api/auth/tiktok"
|
||||
configured={tiktokConfigured}
|
||||
setupVariables={[
|
||||
"BASE_URL",
|
||||
|
||||
Reference in New Issue
Block a user