mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
feat: use i18n link component
This commit is contained in:
@@ -5,7 +5,7 @@ const faqs = [
|
|||||||
[
|
[
|
||||||
{
|
{
|
||||||
question: 'faq.q1',
|
question: 'faq.q1',
|
||||||
answer: 'faq.a2',
|
answer: 'faq.a1',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
question: 'faq.q2',
|
question: 'faq.q2',
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
import { cn } from '@/lib/utils'
|
import { cn } from '@/lib/utils'
|
||||||
import { Popover, Transition } from '@headlessui/react'
|
import { Popover, Transition } from '@headlessui/react'
|
||||||
import { HeartIcon } from 'lucide-react'
|
import { HeartIcon } from 'lucide-react'
|
||||||
import Link from 'next/link'
|
|
||||||
import { Fragment } from 'react'
|
import { Fragment } from 'react'
|
||||||
import { Container } from './Container'
|
import { Container } from './Container'
|
||||||
import { NavLink } from './NavLink'
|
import { NavLink } from './NavLink'
|
||||||
@@ -11,6 +10,7 @@ import { trackGAEvent } from './analitycs'
|
|||||||
import { Logo } from './shared/Logo'
|
import { Logo } from './shared/Logo'
|
||||||
import { Button, buttonVariants } from './ui/button'
|
import { Button, buttonVariants } from './ui/button'
|
||||||
import { useTranslations } from 'next-intl'
|
import { useTranslations } from 'next-intl'
|
||||||
|
import { Link } from '@/i18n/routing'
|
||||||
|
|
||||||
function MobileNavLink({
|
function MobileNavLink({
|
||||||
href,
|
href,
|
||||||
@@ -133,7 +133,7 @@ export function Header() {
|
|||||||
<Container>
|
<Container>
|
||||||
<nav className="relative z-50 flex justify-between">
|
<nav className="relative z-50 flex justify-between">
|
||||||
<div className="flex items-center md:gap-x-12">
|
<div className="flex items-center md:gap-x-12">
|
||||||
<Link href="#" aria-label="Home">
|
<Link href="/" aria-label="Home">
|
||||||
<Logo className="h-10 w-auto" />
|
<Logo className="h-10 w-auto" />
|
||||||
</Link>
|
</Link>
|
||||||
<div className="hidden md:flex md:gap-x-6">
|
<div className="hidden md:flex md:gap-x-6">
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
"use client";
|
"use client";
|
||||||
|
|
||||||
import Link from "next/link";
|
|
||||||
import { trackGAEvent } from "./analitycs";
|
import { trackGAEvent } from "./analitycs";
|
||||||
|
import { Link } from '@/i18n/routing'
|
||||||
|
|
||||||
export function NavLink({
|
export function NavLink({
|
||||||
href,
|
href,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import Link from 'next/link'
|
import { Link } from '@/i18n/routing'
|
||||||
import { Footer } from './Footer'
|
import { Footer } from './Footer'
|
||||||
import { Header } from './Header'
|
import { Header } from './Header'
|
||||||
import { useTranslations } from 'next-intl'
|
import { useTranslations } from 'next-intl'
|
||||||
|
|||||||
Reference in New Issue
Block a user