From 9ff77f97474dc1a0aca67d8dd5c3dbc0702cca16 Mon Sep 17 00:00:00 2001 From: rebeccahongsf Date: Tue, 22 Oct 2024 15:40:25 -0700 Subject: [PATCH 1/4] SUL23-662 | adjust news filters --- .../filtering-news-card-view.client.tsx | 121 +++++++++--------- 1 file changed, 63 insertions(+), 58 deletions(-) diff --git a/src/components/views/stanford-news/filtering-news-card-view.client.tsx b/src/components/views/stanford-news/filtering-news-card-view.client.tsx index 6cadeb27..6b0499b4 100644 --- a/src/components/views/stanford-news/filtering-news-card-view.client.tsx +++ b/src/components/views/stanford-news/filtering-news-card-view.client.tsx @@ -6,9 +6,8 @@ import {useCounter} from "usehooks-ts" import useServerAction from "@/lib/hooks/useServerAction" import ToggleOption from "@/components/patterns/toggle-option" import SelectList from "@/components/patterns/elements/select-list" -import {ArrowPathIcon, XMarkIcon} from "@heroicons/react/20/solid" -import {MagnifyingGlassIcon} from "@heroicons/react/24/solid" -import {SelectOptionDefinition, SelectValue} from "@mui/base/useSelect" +import {ArrowPathIcon, XMarkIcon, MagnifyingGlassIcon} from "@heroicons/react/20/solid" +import {SelectOptionDefinition} from "@mui/base/useSelect" type Props = HTMLAttributes & { /** @@ -74,69 +73,75 @@ const FilteringNewsCardViewClient = ({children, totalItems, loadPage, typeOption )}
e.preventDefault()}> -
- + Filter news +
+
+ - +
+ - {titleFilter && ( - - )} + {titleFilter && ( + + )} - -
+ +
+
-
- Filter by speciality - onDateChange("now - 30 days")} - first - > - Last 30 days - - onDateChange("now - 12 months")} - > - Last 12 months - - onDateChange(undefined)} last> - All News - -
+
+ Filter by speciality + onDateChange("now - 30 days")} + first + > + Last 30 days + + onDateChange("now - 12 months")} + > + Last 12 months + + onDateChange(undefined)} last> + All News + +
-
- onTypeChange(value as string)} />
From 11a0c38faa7845458bcef77af055ad8ff45e63ee Mon Sep 17 00:00:00 2001 From: rebeccahongsf Date: Tue, 22 Oct 2024 15:59:56 -0700 Subject: [PATCH 2/4] tweak gap --- .../views/stanford-news/filtering-news-card-view.client.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/views/stanford-news/filtering-news-card-view.client.tsx b/src/components/views/stanford-news/filtering-news-card-view.client.tsx index 6b0499b4..5b0122fd 100644 --- a/src/components/views/stanford-news/filtering-news-card-view.client.tsx +++ b/src/components/views/stanford-news/filtering-news-card-view.client.tsx @@ -74,7 +74,7 @@ const FilteringNewsCardViewClient = ({children, totalItems, loadPage, typeOption )} e.preventDefault()}> Filter news -
+