11"use client"
22
3- import { useState } from "react"
43import Image from "next/image"
54import { Card , CardContent , CardDescription , CardHeader , CardTitle } from "@/components/ui/card"
65import { Container } from "@/components/ui/container"
@@ -85,7 +84,7 @@ Built with modern businesses in mind, StormERP integrates seamlessly with your e
8584 "Business Intelligence & Reporting" ,
8685 "Multi-Location & Multi-Currency Support"
8786 ] ,
88- productUrl : "https://erp. codestormhub.live" ,
87+ productUrl : "https://codestormhub.live/erp/dashboard " ,
8988 dashboardImage : "/products/stormerp-dashboard.png" ,
9089 status : "active" ,
9190 category : "ERP"
@@ -97,8 +96,6 @@ interface ProductsSectionProps {
9796}
9897
9998export default function ProductsSection ( { className } : ProductsSectionProps ) {
100- const [ selectedProduct , setSelectedProduct ] = useState < Product | null > ( null )
101-
10299 return (
103100 < section className = { className } aria-labelledby = "products-heading" >
104101 < Container className = "py-16 sm:py-24" >
@@ -172,7 +169,6 @@ export default function ProductsSection({ className }: ProductsSectionProps) {
172169 variant = "outline"
173170 size = "sm"
174171 className = "flex-1"
175- onClick = { ( ) => setSelectedProduct ( product ) }
176172 >
177173 View Details
178174 </ Button >
@@ -193,7 +189,10 @@ export default function ProductsSection({ className }: ProductsSectionProps) {
193189 </ Card >
194190
195191 { /* Product Detail Modal */ }
196- < DialogContent className = "max-w-5xl max-h-[90vh] overflow-y-auto" >
192+ < DialogContent
193+ className = "max-w-5xl max-h-[90vh] overflow-y-auto"
194+ aria-describedby = { `product-description-${ product . id } ` }
195+ >
197196 < DialogHeader >
198197 < div className = "flex items-center gap-3" >
199198 < div className = "w-12 h-12 rounded-xl bg-primary/20 flex items-center justify-center" >
@@ -222,7 +221,7 @@ export default function ProductsSection({ className }: ProductsSectionProps) {
222221 </ div >
223222
224223 { /* Description */ }
225- < div className = "space-y-3" >
224+ < div className = "space-y-3" id = { `product-description- ${ product . id } ` } >
226225 < h4 className = "text-lg font-semibold" > About { product . name } </ h4 >
227226 < div className = "text-muted-foreground whitespace-pre-line leading-relaxed" >
228227 { product . fullDescription }
0 commit comments