Fix imports and missing dependencies
This commit is contained in:
1 parent
f2179cfe57
commit
4af1d0e03b
32 files changed
+1655
-31
No files matched your search
@@ -2,7 +2,7 @@ import Link from 'next/link'
|
||||
import { notFound } from 'next/navigation'
|
||||
import type { Metadata } from 'next'
|
||||
import { ArrowLeft } from 'lucide-react'
|
||||
import type { Article } from '@irelax/types'
|
||||
import type { Article } from '@homaroma/types'
|
||||
|
||||
import { API_BASE } from '../../../lib/api'
|
||||
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useState, useEffect, useRef } from 'react'
|
||||
import Link from 'next/link'
|
||||
import { useParams } from 'next/navigation'
|
||||
import ProductCard from '../../../components/ProductCard'
|
||||
import { getCategoryImage, type Category, type Product } from '@irelax/types'
|
||||
import { getCategoryImage, type Category, type Product } from '@homaroma/types'
|
||||
|
||||
import { API_BASE } from '../../../lib/api'
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Link from 'next/link'
|
||||
import ProductCard from '../components/ProductCard'
|
||||
import { getCategoryImage, type Category, type Product, type Hero } from '@irelax/types'
|
||||
import { getCategoryImage, type Category, type Product, type Hero } from '@homaroma/types'
|
||||
import { API_BASE } from '../lib/api'
|
||||
|
||||
// Cache settings for Next.js fetch
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import Link from 'next/link'
|
||||
import { notFound } from 'next/navigation'
|
||||
import type { Metadata } from 'next'
|
||||
import { getCategoryImage, formatPrice, type Product } from '@irelax/types'
|
||||
import { getCategoryImage, formatPrice, type Product } from '@homaroma/types'
|
||||
import AddToCartSection from '../../../components/AddToCartSection'
|
||||
import ProductCard from '../../../components/ProductCard'
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import Link from 'next/link'
|
||||
import type { Article } from '@irelax/types'
|
||||
import type { Article } from '@homaroma/types'
|
||||
import { API_BASE } from '../../lib/api'
|
||||
|
||||
export const metadata = {
|
||||
|
||||
@@ -3,7 +3,7 @@ import { useState, useEffect, useRef, Suspense } from 'react'
|
||||
import { useSearchParams, useRouter } from 'next/navigation'
|
||||
import Link from 'next/link'
|
||||
import ProductCard from '../../components/ProductCard'
|
||||
import { type Product } from '@irelax/types'
|
||||
import { type Product } from '@homaroma/types'
|
||||
import { API_BASE } from '../../lib/api'
|
||||
|
||||
function SearchResults() {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { useState, useEffect, useRef } from 'react'
|
||||
import Link from 'next/link'
|
||||
import ProductCard from '../../components/ProductCard'
|
||||
import { type Category, type Product } from '@irelax/types'
|
||||
import { type Category, type Product } from '@homaroma/types'
|
||||
|
||||
import { API_BASE } from '../../lib/api'
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
"use client";
|
||||
import { useState } from 'react'
|
||||
import Link from 'next/link'
|
||||
import { getCategoryImage, formatPrice, type Product } from '@irelax/types'
|
||||
import { getCategoryImage, formatPrice, type Product } from '@homaroma/types'
|
||||
import { useCartStore } from '../store/cartStore'
|
||||
|
||||
interface Props {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import { X, ShoppingBag, Plus, Minus, Trash2 } from 'lucide-react'
|
||||
import Link from 'next/link'
|
||||
import { useCartStore } from '../store/cartStore'
|
||||
import { formatPrice } from '@irelax/types'
|
||||
import { formatPrice } from '@homaroma/types'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
export default function CartDrawer() {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
"use client";
|
||||
import Link from 'next/link'
|
||||
import type { Category } from '@irelax/types'
|
||||
import type { Category } from '@homaroma/types'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
interface FooterProps {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
import Link from 'next/link'
|
||||
import { useRouter, usePathname } from 'next/navigation'
|
||||
import { useState, useEffect } from 'react'
|
||||
import type { Category } from '@irelax/types'
|
||||
import type { Category } from '@homaroma/types'
|
||||
import { ShoppingBag, MapPin } from 'lucide-react'
|
||||
import { useCartStore } from '../store/cartStore'
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import Link from 'next/link'
|
||||
import type { Product } from '@irelax/types'
|
||||
import { getCategoryImage, formatPrice } from '@irelax/types'
|
||||
import type { Product } from '@homaroma/types'
|
||||
import { getCategoryImage, formatPrice } from '@homaroma/types'
|
||||
|
||||
interface ProductCardProps {
|
||||
product: Product
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { create } from 'zustand';
|
||||
import { persist } from 'zustand/middleware';
|
||||
import type { CartItem } from '@irelax/types';
|
||||
import type { CartItem } from '@homaroma/types';
|
||||
|
||||
interface CartState {
|
||||
items: CartItem[];
|
||||
|
||||
Reference in new issue
Block a user