- onNavigate('home'))}>کانینا
+ router.push('/')}>کانینا
پیگیری سفارش
@@ -56,7 +59,7 @@ export default function OrderTracking({ onNavigate, onBack }: { onNavigate: (v:
{/* Desktop Breadcrumbs */}
- onNavigate('home'))}>خانه
+ router.push('/')}>خانه
رهگیری هوشمند محموله
diff --git a/frontend/application/components/VideosPage.tsx b/frontend/application/components/VideosPage.tsx
index febc3d2..082e3e5 100644
--- a/frontend/application/components/VideosPage.tsx
+++ b/frontend/application/components/VideosPage.tsx
@@ -52,7 +52,10 @@ const ALL_VIDEOS = [
}
];
-export default function VideosPage({ onBack }: { onBack: () => void }) {
+import { useRouter } from 'next/navigation';
+
+export default function VideosPage() {
+ const router = useRouter();
const [selectedVideo, setSelectedVideo] = useState
(null);
const [search, setSearch] = useState("");
@@ -75,7 +78,7 @@ export default function VideosPage({ onBack }: { onBack: () => void }) {