mirror of
https://github.com/vercel/commerce.git
synced 2025-07-23 04:36:49 +00:00
Links and data fetching for dynamic routes
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
|
||||
import SanityImage from 'components/ui/sanity-image';
|
||||
import { cn } from 'lib/utils';
|
||||
import Link from 'next/link';
|
||||
import Link from 'next-intl/link';
|
||||
import { FC } from 'react';
|
||||
|
||||
interface CardProps {
|
||||
|
@@ -1,6 +1,6 @@
|
||||
import SanityImage from 'components/ui/sanity-image';
|
||||
import { cn } from 'lib/utils';
|
||||
import Link from 'next/link';
|
||||
import Link from 'next-intl/link';
|
||||
import { FC } from 'react';
|
||||
interface Props {
|
||||
className?: string;
|
||||
|
@@ -8,7 +8,7 @@ import {
|
||||
} from '@/components/ui/dropdown-menu';
|
||||
import { LanguageIcon } from '@heroicons/react/24/outline';
|
||||
import { useLocale, useTranslations } from 'next-intl';
|
||||
import Link from 'next/link';
|
||||
import Link from 'next-intl/link';
|
||||
import { usePathname } from 'next/navigation';
|
||||
import { useState } from 'react';
|
||||
import { supportedLanguages } from '../../../i18n-config';
|
||||
|
@@ -5,7 +5,7 @@ import type { Product } from '@/lib/storm/product';
|
||||
import Price from 'components/price';
|
||||
import Text from 'components/ui/text';
|
||||
import { cn } from 'lib/utils';
|
||||
import Link from 'next/link';
|
||||
import Link from 'next-intl/link';
|
||||
import { FC } from 'react';
|
||||
interface Props {
|
||||
className?: string;
|
||||
|
Reference in New Issue
Block a user