This commit is contained in:
parent
d55448d64b
commit
39eb66a512
|
|
@ -2,8 +2,6 @@ import { FadeIn } from "@/components/landing/fade-in";
|
|||
import { Avatar, AvatarFallback, AvatarImage } from "@/components/ui/avatar";
|
||||
import { Separator } from "@/components/ui/separator";
|
||||
import { Toaster } from "@/components/ui/toaster";
|
||||
// import { auth } from "@clerk/nextjs";
|
||||
// import { FileText } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import { redirect } from "next/navigation";
|
||||
import React from "react";
|
||||
|
|
@ -77,12 +75,7 @@ export default async function AuthenticatedLayout({
|
|||
}: {
|
||||
children: React.ReactNode;
|
||||
}) {
|
||||
// const { userId } = auth();
|
||||
|
||||
// if (userId) {
|
||||
// console.log("user is signed in already, redirecting to /app/apis");
|
||||
// return redirect("/app/apis");
|
||||
// }
|
||||
const quote = quotes[Math.floor(Math.random() * quotes.length)];
|
||||
|
||||
return (
|
||||
|
|
|
|||
|
|
@ -1,9 +1,6 @@
|
|||
"use client";
|
||||
|
||||
import { FadeIn } from "@/components/landing/fade-in";
|
||||
|
||||
// import { useAuth } from "@clerk/nextjs";
|
||||
// import { MoveRight } from "lucide-react";
|
||||
import Link from "next/link";
|
||||
import * as React from "react";
|
||||
import { ErrorBanner, WarnBanner } from "../../banners";
|
||||
|
|
@ -14,15 +11,9 @@ import toast from "react-hot-toast";
|
|||
import initTranslations from "@/app/i18n";
|
||||
import { useTranslation } from "react-i18next";
|
||||
|
||||
// export default function AuthenticationPage() {
|
||||
|
||||
|
||||
// const i18nNamespaces = ['common'];
|
||||
|
||||
export default function SignInPage({ params: { locale } }: { params: { locale: string } }) {
|
||||
|
||||
// const { t, resources } = await initTranslations(locale, i18nNamespaces);
|
||||
|
||||
const { t } = useTranslation();
|
||||
|
||||
const [verify, setVerify] = React.useState(false);
|
||||
|
|
@ -31,11 +22,6 @@ export default function SignInPage({ params: { locale } }: { params: { locale: s
|
|||
const [email, setEmail] = React.useState("");
|
||||
const [password, setPassword] = React.useState("");
|
||||
|
||||
// const { isLoaded } = useAuth();
|
||||
// if (!isLoaded) {
|
||||
// return null;
|
||||
// }
|
||||
|
||||
return (
|
||||
<div className="flex flex-col gap-10">
|
||||
{accountNotFound ? (
|
||||
|
|
|
|||
Loading…
Reference in New Issue