fix: update routes and icons in marketing components

This commit is contained in:
javayhu 2025-03-01 14:38:43 +08:00
parent 31575c599d
commit 1c85d22ed8
4 changed files with 7 additions and 7 deletions

View File

@ -20,7 +20,7 @@ import { useForm } from "react-hook-form";
import type * as z from "zod";
import { Icons } from "@/components/icons/icons";
import { authClient } from "@/lib/auth-client";
import { AUTH_ROUTE_LOGIN, AUTH_ROUTE_RESET_PASSWORD } from "@/routes";
import { Routes } from "@/routes";
export const ForgotPasswordForm = () => {
const [error, setError] = useState<string | undefined>("");

View File

@ -9,7 +9,7 @@ import {
CollapsibleTrigger
} from '@/components/ui/collapsible';
import { siteConfig } from '@/config/site';
import { Routes } from '@/constants/routes';
import { Routes } from '@/routes';
import { cn } from '@/lib/utils';
import { Portal } from '@radix-ui/react-portal';
import { ChevronDown, ChevronUp, MenuIcon, X } from 'lucide-react';
@ -126,7 +126,7 @@ function MainMobileMenu({ onLinkClicked }: MainMobileMenuProps) {
Log in
</Link>
<Link
href={Routes.SignUp}
href={Routes.Register}
className={cn(
buttonVariants({
variant: 'default',

View File

@ -22,7 +22,7 @@ import { siteConfig } from '@/config/site';
import { useScroll } from "@/hooks/use-scroll";
import { authClient } from '@/lib/auth-client';
import { cn } from '@/lib/utils';
import { AUTH_ROUTE_REGISTER } from '@/routes';
import { Routes } from '@/routes';
import { MarketingConfig } from '@/types';
import Link from 'next/link';
import { usePathname } from 'next/navigation';
@ -165,7 +165,7 @@ export function Navbar({ scroll, config }: NavBarProps) {
size="sm"
asChild
>
<a href={AUTH_ROUTE_REGISTER}>
<a href={Routes.Register}>
Sign up
</a>
</Button>

View File

@ -317,7 +317,7 @@ export const powereds: PoweredLdg[] = [
title: "Auth.js",
description: "Open source authentication library for Next.js.",
link: "https://authjs.dev/",
icon: "authjs",
icon: "nextjs",
},
{
title: "Shadcn UI",
@ -335,7 +335,7 @@ export const powereds: PoweredLdg[] = [
title: "Sanity",
description: "Headless CMS for modern websites.",
link: "https://www.sanity.io/",
icon: "sanity",
icon: "nextjs",
},
{
title: "Resend",