File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
src/pages/[locale]/developers Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -288,6 +288,8 @@ const TutorialPage = ({
288
288
< Flex className = "mb-4 max-w-full flex-wrap items-center gap-2" >
289
289
< div className = "flex w-full flex-wrap gap-2 lg:grid lg:grid-cols-3 lg:gap-4 xl:grid-cols-4 2xl:grid-cols-5" >
290
290
{ Object . entries ( allTags ) . map ( ( [ tagName , tagCount ] , idx ) => {
291
+ if ( tagCount <= 1 ) return null
292
+
291
293
const name = `${ tagName } (${ tagCount } )`
292
294
const isActive = selectedTags . includes ( tagName )
293
295
return (
@@ -374,11 +376,9 @@ const TutorialPage = ({
374
376
) }
375
377
</ Text >
376
378
< Text className = "text-body-medium" > { tutorial . description } </ Text >
377
- { ( tutorial . tags ?? [ ] ) . length > 1 && (
378
- < Flex className = "w-full flex-wrap" >
379
- < TutorialTags tags = { tutorial . tags ?? [ ] } />
380
- </ Flex >
381
- ) }
379
+ < Flex className = "w-full flex-wrap" >
380
+ < TutorialTags tags = { tutorial . tags ?? [ ] } />
381
+ </ Flex >
382
382
</ LinkFlex >
383
383
)
384
384
} ) }
You can’t perform that action at this time.
0 commit comments