From 88b49a194db5aa5f7c6948701ca17d39152ac31d Mon Sep 17 00:00:00 2001 From: Sidharth Prabhu Date: Mon, 20 Apr 2026 10:18:44 +0530 Subject: [PATCH] Quick Links in receives dashboard made functional. --- frontend/src/pages/IntentDashboard.tsx | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 => ( -