mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-04 21:04:37 +08:00
squash changes (#406)
This commit is contained in:
parent
1c873a1f33
commit
cc2f230659
@ -66,4 +66,4 @@
|
||||
"tailwindcss": "^3.4.4",
|
||||
"tsup": "^8.0.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -100,4 +100,4 @@
|
||||
"tailwindcss": "^3.4.4",
|
||||
"tsup": "^8.0.2"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -8,12 +8,12 @@ import { passwordSchema as schemaFieldsPasswordSchema, strictEmailSchema, yupObj
|
||||
import { generateRandomValues } from '@stackframe/stack-shared/dist/utils/crypto';
|
||||
import { throwErr } from '@stackframe/stack-shared/dist/utils/errors';
|
||||
import { runAsynchronously, runAsynchronouslyWithAlert } from '@stackframe/stack-shared/dist/utils/promises';
|
||||
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCell, Badge, Button, Input, Label, PasswordInput, Separator, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Typography } from '@stackframe/stack-ui';
|
||||
import { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionCell, Badge, Button, Input, Label, PasswordInput, Separator, Skeleton, Table, TableBody, TableCell, TableHead, TableHeader, TableRow, Typography } from '@stackframe/stack-ui';
|
||||
import { Edit, Trash, icons } from 'lucide-react';
|
||||
import { useRouter } from "next/navigation";
|
||||
import { TOTPController, createTOTPKeyURI } from "oslo/otp";
|
||||
import * as QRCode from 'qrcode';
|
||||
import React, { useEffect, useState } from "react";
|
||||
import React, { Suspense, useEffect, useState } from "react";
|
||||
import { useForm } from 'react-hook-form';
|
||||
import * as yup from "yup";
|
||||
import { CurrentUser, MessageCard, Project, Team, TeamInvitation, useStackApp, useUser } from '..';
|
||||
@ -65,7 +65,9 @@ export function AccountSettings(props: {
|
||||
type: 'item',
|
||||
id: 'auth',
|
||||
icon: <Icon name="ShieldCheck"/>,
|
||||
content: <EmailsAndAuthPage/>,
|
||||
content: <Suspense fallback={<EmailsAndAuthPageSkeleton/>}>
|
||||
<EmailsAndAuthPage/>
|
||||
</Suspense>,
|
||||
},
|
||||
{
|
||||
title: t('Settings'),
|
||||
@ -366,6 +368,15 @@ function EmailsAndAuthPage() {
|
||||
);
|
||||
}
|
||||
|
||||
function EmailsAndAuthPageSkeleton() {
|
||||
return <PageLayout>
|
||||
<Skeleton className="h-9 w-full mt-1"/>
|
||||
<Skeleton className="h-9 w-full mt-1"/>
|
||||
<Skeleton className="h-9 w-full mt-1"/>
|
||||
<Skeleton className="h-9 w-full mt-1"/>
|
||||
</PageLayout>;
|
||||
}
|
||||
|
||||
|
||||
function usePasskeySection() {
|
||||
const { t } = useTranslation();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user