diff --git a/frontend/application/components/AddressModal.tsx b/frontend/application/components/AddressModal.tsx
index dbdaadc..cfb951d 100644
--- a/frontend/application/components/AddressModal.tsx
+++ b/frontend/application/components/AddressModal.tsx
@@ -3,7 +3,7 @@ import React, { useState, useEffect } from "react";
import { motion, AnimatePresence } from "motion/react";
import { X, MapPin, User, Phone, Hash, Save, Check } from "lucide-react";
import { toPersian, cn } from "../lib/utils";
-import { Address } from "../store/userStore";
+import { Address } from "../lib/store/userStore";
import { toast } from "sonner";
interface AddressModalProps {
diff --git a/frontend/application/components/ArchivePage.tsx b/frontend/application/components/ArchivePage.tsx
index 506d676..c963aea 100644
--- a/frontend/application/components/ArchivePage.tsx
+++ b/frontend/application/components/ArchivePage.tsx
@@ -1,8 +1,8 @@
"use client";
import React, { useState, useMemo, useEffect } from "react";
-import { Product, PetType } from "../data/products";
-import { usePetStore } from "../store/usePetStore";
-import { productService } from "../services/productService";
+import { Product, PetType } from "../lib/data/products";
+import { usePetStore } from "../lib/store/usePetStore";
+import { productService } from "../lib/services/productService";
import { motion, AnimatePresence } from "motion/react";
import { ProductCardSkeleton } from "./Skeleton";
import { toast } from "sonner";
@@ -23,7 +23,7 @@ import {
Plus,
Loader2
} from "lucide-react";
-import { useCartStore } from "../store/cartStore";
+import { useCartStore } from "../lib/store/cartStore";
import SafeImage from "./SafeImage";
const CATEGORIES = [
diff --git a/frontend/application/components/AuthModal.tsx b/frontend/application/components/AuthModal.tsx
index 5ac224d..10b5df5 100644
--- a/frontend/application/components/AuthModal.tsx
+++ b/frontend/application/components/AuthModal.tsx
@@ -2,8 +2,8 @@
import React, { useState, useEffect, useRef } from "react";
import { motion, AnimatePresence } from "motion/react";
import { X, User, Building2, Heart, ShieldCheck, Phone, Key, LogIn, ArrowRight, RefreshCw } from "lucide-react";
-import { useUserStore, UserRole } from "../store/userStore";
-import { authService } from "../services/authService";
+import { useUserStore, UserRole } from "../lib/store/userStore";
+import { authService } from "../lib/services/authService";
import { toast } from "sonner";
import { toPersian } from "../lib/utils";
diff --git a/frontend/application/components/B2BPortal.tsx b/frontend/application/components/B2BPortal.tsx
index 8e6eb3e..989cd61 100644
--- a/frontend/application/components/B2BPortal.tsx
+++ b/frontend/application/components/B2BPortal.tsx
@@ -1,8 +1,8 @@
"use client";
import React, { useState, useEffect } from "react";
-import { Product } from "../data/products";
-import { useCartStore } from "../store/cartStore";
-import { productService } from "../services/productService";
+import { Product } from "../lib/data/products";
+import { useCartStore } from "../lib/store/cartStore";
+import { productService } from "../lib/services/productService";
import { motion, AnimatePresence } from "motion/react";
import {
Building2,
diff --git a/frontend/application/components/BlogPage.tsx b/frontend/application/components/BlogPage.tsx
index df24d53..976067f 100644
--- a/frontend/application/components/BlogPage.tsx
+++ b/frontend/application/components/BlogPage.tsx
@@ -2,8 +2,8 @@
import React from "react";
import { motion } from "motion/react";
import { ChevronRight, Calendar, User, ArrowLeft, Sparkles, BookOpen } from "lucide-react";
-import { Product } from "../data/products";
-import { productService } from "../services/productService";
+import { Product } from "../lib/data/products";
+import { productService } from "../lib/services/productService";
const BLOG_POSTS = [
{
diff --git a/frontend/application/components/CartDrawer.tsx b/frontend/application/components/CartDrawer.tsx
index c9f2532..ee86a75 100644
--- a/frontend/application/components/CartDrawer.tsx
+++ b/frontend/application/components/CartDrawer.tsx
@@ -3,9 +3,9 @@ import React, { useState, useEffect } from "react";
import { X, Trash2, Plus, Minus, ShoppingBag, ShieldCheck, ArrowLeft, Ticket, Sparkles, CheckCircle2 } from "lucide-react";
import { motion, AnimatePresence } from "motion/react";
import { toPersian, cn } from "../lib/utils";
-import { useCartStore } from "../store/cartStore";
-import { Product } from "../data/products";
-import { productService } from "../services/productService";
+import { useCartStore } from "../lib/store/cartStore";
+import { Product } from "../lib/data/products";
+import { productService } from "../lib/services/productService";
import SafeImage from "./SafeImage";
import { toast } from "sonner";
diff --git a/frontend/application/components/CheckoutPage.tsx b/frontend/application/components/CheckoutPage.tsx
index edde4ef..065a52f 100644
--- a/frontend/application/components/CheckoutPage.tsx
+++ b/frontend/application/components/CheckoutPage.tsx
@@ -17,11 +17,11 @@ import {
PlusCircle
} from "lucide-react";
import { toPersian, cn } from "../lib/utils";
-import { useCartStore } from "../store/cartStore";
-import { usePetStore } from "../store/usePetStore";
-import { useUserStore } from "../store/userStore";
-import { Product } from "../data/products";
-import { productService } from "../services/productService";
+import { useCartStore } from "../lib/store/cartStore";
+import { usePetStore } from "../lib/store/usePetStore";
+import { useUserStore } from "../lib/store/userStore";
+import { Product } from "../lib/data/products";
+import { productService } from "../lib/services/productService";
import { toast } from "sonner";
import { useRouter } from 'next/navigation';
diff --git a/frontend/application/components/ErrorPages.tsx b/frontend/application/components/ErrorPages.tsx
index bbd1b9a..39556d5 100644
--- a/frontend/application/components/ErrorPages.tsx
+++ b/frontend/application/components/ErrorPages.tsx
@@ -2,7 +2,10 @@
import React from 'react';
import { FileQuestion, AlertCircle, Home, RefreshCw } from 'lucide-react';
-export const NotFoundPage = ({ onGoHome }: { onGoHome: () => void }) => {
+import { useRouter } from 'next/navigation';
+
+export const NotFoundPage = () => {
+ const router = useRouter();
return (
@@ -21,7 +24,7 @@ export const NotFoundPage = ({ onGoHome }: { onGoHome: () => void }) => {