Put 2fa under collapsible (#1951)

Co-authored-by: Muhammed Salih Altun <muhammedsalihaltun@gmail.com>
This commit is contained in:
Shuchang Zheng
2025-03-17 07:03:02 -07:00
committed by GitHub
parent 9e474ade7b
commit 74aae0ce15

View File

@@ -1,4 +1,10 @@
import { QRCodeIcon } from "@/components/icons/QRCodeIcon"; import { QRCodeIcon } from "@/components/icons/QRCodeIcon";
import {
Accordion,
AccordionContent,
AccordionItem,
AccordionTrigger,
} from "@/components/ui/accordion";
import { Input } from "@/components/ui/input"; import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label"; import { Label } from "@/components/ui/label";
import { Separator } from "@/components/ui/separator"; import { Separator } from "@/components/ui/separator";
@@ -108,14 +114,17 @@ function PasswordCredentialContent({
</div> </div>
</div> </div>
<Separator /> <Separator />
<Accordion type="single" collapsible>
<AccordionItem value="two-factor-authentication" className="border-b-0">
<AccordionTrigger className="py-2">
Two-Factor Authentication
</AccordionTrigger>
<AccordionContent>
<div className="space-y-4"> <div className="space-y-4">
<div className="space-y-1"> <p className="text-sm text-slate-400">
<h1>Two-Factor Authentication</h1> Set up Skyvern to automatically retrieve two-factor
<h2 className="text-sm text-slate-400"> authentication codes.
Set up Skyvern to automatically retrieve two-factor authentication </p>
codes.
</h2>
</div>
<div className="grid h-36 grid-cols-3 gap-4"> <div className="grid h-36 grid-cols-3 gap-4">
<div <div
className={cn( className={cn(
@@ -171,8 +180,8 @@ function PasswordCredentialContent({
rel="noopener noreferrer" rel="noopener noreferrer"
className="underline underline-offset-2" className="underline underline-offset-2"
> >
see our documentation on how to set up two-factor authentication see our documentation on how to set up two-factor
in workflows authentication in workflows
</Link>{" "} </Link>{" "}
to get started. to get started.
</p> </p>
@@ -181,7 +190,9 @@ function PasswordCredentialContent({
<div className="space-y-4"> <div className="space-y-4">
<div className="flex items-center gap-12"> <div className="flex items-center gap-12">
<div className="w-40 shrink-0"> <div className="w-40 shrink-0">
<Label className="whitespace-nowrap">Authenticator Key</Label> <Label className="whitespace-nowrap">
Authenticator Key
</Label>
</div> </div>
<Input <Input
value={totp} value={totp}
@@ -196,9 +207,9 @@ function PasswordCredentialContent({
/> />
</div> </div>
<p className="text-sm text-slate-400"> <p className="text-sm text-slate-400">
You need to find the authenticator secret from the website where You need to find the authenticator secret from the website
you are using the credential. Here are some guides from popular where you are using the credential. Here are some guides
authenticator apps:{" "} from popular authenticator apps:{" "}
<Link <Link
to="https://bitwarden.com/help/integrated-authenticator/#manually-enter-a-secret" to="https://bitwarden.com/help/integrated-authenticator/#manually-enter-a-secret"
target="_blank" target="_blank"
@@ -230,6 +241,9 @@ function PasswordCredentialContent({
</div> </div>
)} )}
</div> </div>
</AccordionContent>
</AccordionItem>
</Accordion>
</div> </div>
); );
} }