demo: fix types

This commit is contained in:
Bereket Engida
2024-09-23 15:20:02 +03:00
parent 86865abc62
commit 350492790d
6 changed files with 389 additions and 385 deletions

View File

@@ -45,7 +45,6 @@ export default function Component() {
if (isSubmitted) {
return (
<main className="flex flex-col items-center justify-center min-h-[calc(100vh-10rem)]">
<Card className="w-[350px]">
<CardHeader>
<CardTitle>Check your email</CardTitle>

View File

@@ -20,7 +20,9 @@ import { toast } from "sonner";
export default function ResetPassword({
params,
}: { params: { token: string } }) {
}: {
params: { token: string };
}) {
const [password, setPassword] = useState("");
const [confirmPassword, setConfirmPassword] = useState("");
const [isSubmitting, setIsSubmitting] = useState(false);
@@ -43,7 +45,6 @@ export default function ResetPassword({
}
return (
<div className="flex flex-col items-center justify-center min-h-[calc(100vh-10rem)]">
<Card className="w-[350px]">
<CardHeader>
<CardTitle>Reset password</CardTitle>

View File

@@ -9,15 +9,20 @@ export default function Page() {
<div className="w-full">
<div className="flex items-center flex-col justify-center w-full md:py-10">
<div className="md:w-[400px]">
<Tabs tabs={[{
<Tabs
tabs={[
{
title: "Sign In",
value: "sign-in",
content: <SignIn />,
}, {
},
{
title: "Sign Up",
value: "sign-up",
content: <SignUp />,
}]} />
},
]}
/>
</div>
</div>
</div>

View File

@@ -29,7 +29,7 @@ export default function Component() {
const requestOTP = async () => {
const res = await client.twoFactor.sendOtp({
options: {
fetchOptions: {
body: {
returnOTP: true,
},
@@ -102,7 +102,8 @@ export default function Component() {
</div>
{message && (
<div
className={`flex items-center gap-2 mt-4 ${isError ? "text-red-500" : "text-primary"
className={`flex items-center gap-2 mt-4 ${
isError ? "text-red-500" : "text-primary"
}`}
>
{isError ? (

View File

@@ -28,5 +28,3 @@ export const {
useListOrganizations,
useActiveOrganization,
} = client;
client.$Infer;