diff --git a/frontend/src/pages/IntentDashboard.tsx b/frontend/src/pages/IntentDashboard.tsx index 99edd40b..e922eea1 100644 --- a/frontend/src/pages/IntentDashboard.tsx +++ b/frontend/src/pages/IntentDashboard.tsx @@ -1,4 +1,5 @@ import React, { useState, useEffect } from 'react'; +import { useNavigate } from 'react-router-dom'; import { motion } from 'framer-motion'; import { format } from 'date-fns'; import { @@ -57,6 +58,7 @@ interface IntentStats { const IntentDashboard: React.FC = ({ title }) => { const [stats, setStats] = useState(null); const [loading, setLoading] = useState(true); + const navigate = useNavigate(); useEffect(() => { fetchStats(); @@ -221,11 +223,15 @@ const IntentDashboard: React.FC = ({ title }) => {

Quick Links

{[ - { label: 'Inventory', icon: Boxes }, - { label: 'Raw Materials', icon: Package }, - { label: 'Draft Orders', icon: FileText } + { label: 'Inventory', icon: Boxes, path: '/inventory/products' }, + { label: 'Raw Materials', icon: Package, path: '/inventory/base' }, + { label: 'Draft Orders', icon: FileText, path: '/purchases/orders' } ].map(l => ( -