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:
@@ -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 (
|
||||
<>
|
||||
|
||||
Reference in New Issue
Block a user