Links and data fetching for dynamic routes

This commit is contained in:
Henrik Larsson
2023-08-13 22:16:15 +02:00
parent 3c19fb7a79
commit ce9c62084e
18 changed files with 46 additions and 55 deletions

View File

@@ -7,8 +7,8 @@ import { DEFAULT_OPTION } from 'lib/constants';
import type { Cart } from 'lib/shopify/types';
import { createUrl } from 'lib/utils';
import { useTranslations } from 'next-intl';
import Link from 'next-intl/link';
import Image from 'next/image';
import Link from 'next/link';
import { useEffect, useRef, useState } from 'react';
import DeleteItemButton from './delete-item-button';
import EditItemQuantityButton from './edit-item-quantity-button';