From 98bdcb1eab1f1c70aa018b53b0a9a2db27053632 Mon Sep 17 00:00:00 2001 From: JuanMa Garrido Date: Fri, 30 Aug 2024 11:43:59 +0200 Subject: [PATCH] isSelected --- _app/src/HomePage.js | 5 ++++- _app/src/styles.scss | 20 ++++++++++++++++++-- 2 files changed, 22 insertions(+), 3 deletions(-) diff --git a/_app/src/HomePage.js b/_app/src/HomePage.js index 27e2fff4..27f63ec9 100644 --- a/_app/src/HomePage.js +++ b/_app/src/HomePage.js @@ -179,6 +179,7 @@ const Examples = () => { const onChangeSelection = ( [ selectedExampleSlug ] ) => { setSelectedExample( selectedExampleSlug ); }; + useEffect( () => { if ( filterTags ) { setSearchParams( { tags: filterTags, operator: filterOperator } ); @@ -220,12 +221,14 @@ const Examples = () => { <_DataViews />
- { selectedExample && ( + { selectedExample ? (