diff --git a/.env.production b/.env.production index d2d78fe..9c94ade 100644 --- a/.env.production +++ b/.env.production @@ -1,4 +1,4 @@ -NEXT_PUBLIC_APP_VERSION=2.2.5 +NEXT_PUBLIC_APP_VERSION=2.2.6 NEXT_PUBLIC_TOAST_AUTO_CLOSE_DURATION=2500 NEXT_PUBLIC_FIREBASE_API_KEY=AIzaSyCTjdsk2jE34IfnvSKP1JMTIf_Abd7tbt0 NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN=opplens-270d1.firebaseapp.com diff --git a/src/components/Tables/tenders/index.tsx b/src/components/Tables/tenders/index.tsx index 3fcfd3e..13528e2 100644 --- a/src/components/Tables/tenders/index.tsx +++ b/src/components/Tables/tenders/index.tsx @@ -2,6 +2,10 @@ import { ExclamationIcon, EyeIcon } from "@/assets/icons"; import EmptyListWrapper from "@/components/HOC/EmptyListWrapper"; +import IsVisible from "@/components/ui/IsVisible"; +import ListHeader from "@/components/ui/ListHeader"; +import ListWrapper from "@/components/ui/ListWrapper"; +import Pagination from "@/components/ui/pagination"; import Status from "@/components/ui/Status"; import { Table, @@ -12,13 +16,10 @@ import { TableRow, TableSortProvider, } from "@/components/ui/table"; -import IsVisible from "@/components/ui/IsVisible"; -import ListHeader from "@/components/ui/ListHeader"; -import ListWrapper from "@/components/ui/ListWrapper"; -import Pagination from "@/components/ui/pagination"; import TableSkeleton from "@/components/ui/TableSkeleton"; import { _TooltipDefaultParams } from "@/constants/tooltip"; import { cn } from "@/lib/utils"; +import { truncateString } from "@/utils/shared"; import { Tooltip } from "react-tooltip"; import TenderListFilters from "./TenderListFilters"; import useTenderListPresenter from "./useTenderListPresenter"; @@ -78,102 +79,129 @@ const TendersTable = () => { sortOrder={sortOrder} onSortChange={handleSortChange} > - - - - {columns.map((column) => { - const sortKey = columnSortKeys[column]; - return ( - - {column} - - ); - })} - - +
+ + + {columns.map((column) => { + const sortKey = columnSortKeys[column]; + return ( + + {column} + + ); + })} + + - {isPending ? ( - - ) : ( - - - {tendersList.map((item, index) => ( - - - {getRowNumber(index)} - - - {item.title} - - - {item.country_code} - - - {formatDateTimeCell(item.publication_date)} - - - {formatDateTimeCell(item.submission_deadline)} - - - {formatDateTimeCell(item.tender_deadline)} - - - {formatDateTimeCell(item?.created_at ?? 0)} - + {isPending ? ( + + ) : ( + + + {tendersList.map((item, index) => ( + + + {getRowNumber(index)} + + + {item.title.length > 40 ? ( + + {truncateString(item.title, 20, 20)} + + ) : ( + item.title + )} + + + {item.country_code} + + + {formatDateTimeCell(item.publication_date)} + + + {formatDateTimeCell(item.submission_deadline)} + + + {formatDateTimeCell(item.tender_deadline)} + + + {formatDateTimeCell(item?.created_at ?? 0)} + - - {item.status} - - -
- - -
-
-
- ))} -
-
- )} -
+ + {item.status} + + +
+ + +
+
+ + ))} + + + )} + +