From 9d4f81b0be18e177a37a052162ebb3e0822d63b8 Mon Sep 17 00:00:00 2001 From: biplav Date: Wed, 16 Aug 2023 17:14:56 +0530 Subject: [PATCH] clearAll Feature Added #9224 --- .../_components/ShowcaseFilterToggle/index.tsx | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/website/src/pages/showcase/_components/ShowcaseFilterToggle/index.tsx b/website/src/pages/showcase/_components/ShowcaseFilterToggle/index.tsx index aaada5d7618f..78c1126c61a6 100644 --- a/website/src/pages/showcase/_components/ShowcaseFilterToggle/index.tsx +++ b/website/src/pages/showcase/_components/ShowcaseFilterToggle/index.tsx @@ -44,8 +44,16 @@ export default function ShowcaseFilterToggle(): JSX.Element { }); }, [operator, location, history]); + const ClearTag = () => { + history.push({ + ...location, + search: '', + state: prepareUserState(), + }); + }; + return ( -
+
AND {/* eslint-enable @docusaurus/no-untranslated-text */} + +
); }