feat(removed): sub_section_writer

- Its bad and not needed.
This commit is contained in:
DESKTOP-RTLN3BA\$punk 2025-10-27 20:30:10 -07:00
parent 5ac6ebf199
commit 81ddc81026
57 changed files with 2213 additions and 4023 deletions

View file

@ -3,9 +3,9 @@
import { Loader2 } from "lucide-react";
import { AnimatePresence, motion } from "motion/react";
import { useSearchParams } from "next/navigation";
import { useTranslations } from "next-intl";
import { Suspense, useEffect, useState } from "react";
import { toast } from "sonner";
import { useTranslations } from "next-intl";
import { Logo } from "@/components/Logo";
import { getAuthErrorDetails, shouldRetry } from "@/lib/auth-errors";
import { AmbientBackground } from "./AmbientBackground";
@ -13,8 +13,8 @@ import { GoogleLoginButton } from "./GoogleLoginButton";
import { LocalLoginForm } from "./LocalLoginForm";
function LoginContent() {
const t = useTranslations('auth');
const tCommon = useTranslations('common');
const t = useTranslations("auth");
const tCommon = useTranslations("common");
const [authType, setAuthType] = useState<string | null>(null);
const [isLoading, setIsLoading] = useState(true);
const [urlError, setUrlError] = useState<{ title: string; message: string } | null>(null);
@ -29,15 +29,15 @@ function LoginContent() {
// Show registration success message
if (registered === "true") {
toast.success(t('register_success'), {
description: t('login_subtitle'),
toast.success(t("register_success"), {
description: t("login_subtitle"),
duration: 5000,
});
}
// Show logout confirmation
if (logout === "true") {
toast.success(tCommon('success'), {
toast.success(tCommon("success"), {
description: "You have been securely logged out",
duration: 3000,
});
@ -96,7 +96,7 @@ function LoginContent() {
<Logo className="rounded-md" />
<div className="mt-8 flex items-center space-x-2">
<Loader2 className="h-5 w-5 animate-spin text-muted-foreground" />
<span className="text-muted-foreground">{tCommon('loading')}</span>
<span className="text-muted-foreground">{tCommon("loading")}</span>
</div>
</div>
</div>
@ -113,7 +113,7 @@ function LoginContent() {
<div className="mx-auto flex h-screen max-w-lg flex-col items-center justify-center">
<Logo className="rounded-md" />
<h1 className="my-8 text-xl font-bold text-neutral-800 dark:text-neutral-100 md:text-4xl">
{t('sign_in')}
{t("sign_in")}
</h1>
{/* URL Error Display */}