feat(tender-details): add lots section and enhance tender details functionality

- Introduced a new "Lots" section in the tender details page to display lot-specific information, improving data organization and visibility.
- Updated the tender navigation to conditionally include the "Lots" section based on its availability.
- Enhanced the tender display utilities with functions to determine the visibility of various sections, including lots, description, and translation.
- Refactored components to utilize the new utilities for better conditional rendering and improved user experience.
- Improved type definitions for tender details to ensure better type safety and clarity.
This commit is contained in:
AmirReza Jamali
2026-05-13 09:44:43 +03:30
parent 2178f25af5
commit 37e2744420
13 changed files with 850 additions and 137 deletions
+2 -1
View File
@@ -8,6 +8,7 @@ import {
useTenderDetailQuery,
useTranslateTenderMutation,
} from "@/hooks/queries";
import type { TTenderDetails } from "@/lib/api/types/Tenders";
import { usePathname, useRouter, useSearchParams } from "next/navigation";
import { use, useCallback, useMemo } from "react";
import { TenderDetailsContent } from "./components/tender-details-content";
@@ -93,7 +94,7 @@ const TenderDetails = ({ params }: IProps) => {
return <TenderDetailsError breadcrumbItems={breadcrumbItems} />;
}
const tender = data!.data;
const tender: TTenderDetails = data!.data;
return (
<>