refactor: the component ,feat: add tables in componente

This commit is contained in:
Saeed AB 2025-09-28 19:07:15 +03:30
parent b4b023ec32
commit e10c25fc3e
4 changed files with 555 additions and 511 deletions

View File

@ -8,6 +8,9 @@ import {
Radar, Radar,
Settings, Settings,
Star, Star,
Workflow,
DiscAlbum,
LucideLightbulb
} from "lucide-react"; } from "lucide-react";
import React, { useState } from "react"; import React, { useState } from "react";
import { Link, useLocation } from "react-router"; import { Link, useLocation } from "react-router";
@ -95,15 +98,9 @@ const menuItems: MenuItem[] = [
{ {
id: "ideas", id: "ideas",
label: "ایده‌های فناوری و نوآوری", label: "ایده‌های فناوری و نوآوری",
icon: House, icon: LucideLightbulb,
href: "/dashboard/manage-ideas-tech", href: "/dashboard/manage-ideas-tech",
}, },
{
id: "top-innovations",
label: "نوآور برتر",
icon: Star,
href: "/dashboard/top-innovations",
},
{ {
id: "strategic-alignment", id: "strategic-alignment",
label: "میزان انطباق راهبردی", label: "میزان انطباق راهبردی",

View File

@ -4,7 +4,7 @@ import { cn } from "~/lib/utils"
interface TableProps extends React.HTMLAttributes<HTMLTableElement> { interface TableProps extends React.HTMLAttributes<HTMLTableElement> {
containerClassName?: string containerClassName?: string
containerRef?: React.RefObject<HTMLDivElement> containerRef?: React.RefObject<HTMLDivElement | null>
} }
const Table = React.forwardRef<HTMLTableElement, TableProps>( const Table = React.forwardRef<HTMLTableElement, TableProps>(

View File

@ -70,7 +70,7 @@ export default function EcosystemPage() {
return ( return (
<ProtectedRoute requireAuth={true}> <ProtectedRoute requireAuth={true}>
<DashboardLayout title="زیست بوم فناوری"> <DashboardLayout title="زیست بوم فناوری">
<div className=""> <div>
<div className="grid grid-cols-1 items-start lg:grid-cols-12 gap-4"> <div className="grid grid-cols-1 items-start lg:grid-cols-12 gap-4">
<div className="lg:col-span-4"> <div className="lg:col-span-4">
<InfoPanel selectedCompany={selectedCompany} /> <InfoPanel selectedCompany={selectedCompany} />