group all relays
instead of showing single relays in a list, group them all.
This commit is contained in:
parent
74e1c054b9
commit
ea170d350f
2 changed files with 4 additions and 2 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
import { cn } from '@/lib/utils'
|
import { cn } from '@/lib/utils'
|
||||||
import { TRelaySet } from '@/types'
|
import { TRelaySet } from '@/types'
|
||||||
import { ChevronDown, FolderClosed, Music, Radio, Trees, DoorOpen } from 'lucide-react'
|
import { ChevronDown, FolderClosed, Music, Radio, Trees, DoorOpen, TrendingUp } from 'lucide-react'
|
||||||
import { useState } from 'react'
|
import { useState } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
import RelayIcon from '../RelayIcon'
|
import RelayIcon from '../RelayIcon'
|
||||||
|
|
@ -25,6 +25,7 @@ export default function RelaySetCard({
|
||||||
if (nameLower.includes('music')) return Music
|
if (nameLower.includes('music')) return Music
|
||||||
if (nameLower.includes('backstage')) return DoorOpen
|
if (nameLower.includes('backstage')) return DoorOpen
|
||||||
if (nameLower.includes('hood')) return Trees
|
if (nameLower.includes('hood')) return Trees
|
||||||
|
if (nameLower.includes('trend')) return TrendingUp
|
||||||
|
|
||||||
|
|
||||||
return FolderClosed
|
return FolderClosed
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ import { cn } from '@/lib/utils'
|
||||||
import { useFavoriteRelays } from '@/providers/FavoriteRelaysProvider'
|
import { useFavoriteRelays } from '@/providers/FavoriteRelaysProvider'
|
||||||
import { useFeed } from '@/providers/FeedProvider'
|
import { useFeed } from '@/providers/FeedProvider'
|
||||||
import { useScreenSize } from '@/providers/ScreenSizeProvider'
|
import { useScreenSize } from '@/providers/ScreenSizeProvider'
|
||||||
import { ChevronDown, Server, Star, UsersRound, Music, Radio, Trees, DoorOpen } from 'lucide-react'
|
import { ChevronDown, Server, Star, UsersRound, Music, Radio, Trees, DoorOpen, TrendingUp } from 'lucide-react'
|
||||||
import { forwardRef, HTMLAttributes, useMemo, useState } from 'react'
|
import { forwardRef, HTMLAttributes, useMemo, useState } from 'react'
|
||||||
import { useTranslation } from 'react-i18next'
|
import { useTranslation } from 'react-i18next'
|
||||||
|
|
||||||
|
|
@ -103,6 +103,7 @@ const FeedSwitcherTrigger = forwardRef<HTMLDivElement, HTMLAttributes<HTMLDivEle
|
||||||
if (nameLower.includes('music')) return <Music />
|
if (nameLower.includes('music')) return <Music />
|
||||||
if (nameLower.includes('backstage')) return <DoorOpen />
|
if (nameLower.includes('backstage')) return <DoorOpen />
|
||||||
if (nameLower.includes('hood')) return <Trees />
|
if (nameLower.includes('hood')) return <Trees />
|
||||||
|
if (nameLower.includes('hood')) return <TrendingUp />
|
||||||
|
|
||||||
// Default relay set icon
|
// Default relay set icon
|
||||||
return <Server />
|
return <Server />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue