From 40974acd4adce1cc688996d5b09eb8dd0fb360ea Mon Sep 17 00:00:00 2001 From: = <=> Date: Wed, 28 Feb 2024 17:31:32 +0530 Subject: [PATCH] disabled xlsx download for current page --- pages/datasets/index.tsx | 31 +++++++++++++++++----------- styles/components/shared/_modal.scss | 10 +++++++++ styles/style.css | 6 ++++++ 3 files changed, 35 insertions(+), 12 deletions(-) diff --git a/pages/datasets/index.tsx b/pages/datasets/index.tsx index af52584..d957eda 100644 --- a/pages/datasets/index.tsx +++ b/pages/datasets/index.tsx @@ -25,6 +25,7 @@ type Props = { data: any; facets: any; }; + export const sortItems = [ { id: 'bidOpeningDate:asc', @@ -51,8 +52,10 @@ export const sortItems = [ name: 'Relevance', }, ]; +const defaultSort = 'bidOpeningDate:asc'; const filterList = '"organization", "fiscalYear", "mainProcurementCategory"'; + export function formatFilterName(name: string) { if (name == 'fiscalYear') { return 'fiscal year'; @@ -62,8 +65,6 @@ export function formatFilterName(name: string) { else return name; } -const defaultSort = 'bidOpeningDate:asc'; - const Datasets: React.FC = ({ data, facets }) => { const router = useRouter(); const { q, sort, size, fq, from } = router.query; @@ -255,30 +256,36 @@ const Datasets: React.FC = ({ data, facets }) => { setDownloadType(e.target.value) } > -