Skip to content

Commit 78f23c4

Browse files
committed
fix: remove unused imports and clean up BottomNavigation component
1 parent 43c68f9 commit 78f23c4

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed
Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
import { AiOutlineMenu } from 'react-icons/ai'
21
import { BsRssFill } from 'react-icons/bs'
3-
import { useNavigate } from 'react-router-dom'
42
import { SUPPORTED_CARDS } from 'src/config/supportedCards'
53
import { useUserPreferences } from 'src/stores/preferences'
64
import { SelectedCard } from 'src/types'
@@ -13,8 +11,6 @@ type BottomNavigationProps = {
1311
export const BottomNavigation = ({ selectedCard, setSelectedCard }: BottomNavigationProps) => {
1412
const { cards, userCustomCards } = useUserPreferences()
1513
const AVAILABLE_CARDS = [...SUPPORTED_CARDS, ...userCustomCards]
16-
const navigate = useNavigate()
17-
1814
return (
1915
<div className="bottomNavigation">
2016
{cards.map((card) => {
@@ -29,20 +25,10 @@ export const BottomNavigation = ({ selectedCard, setSelectedCard }: BottomNaviga
2925
onClick={() => setSelectedCard(card)}>
3026
{card.type === 'supported'
3127
? constantCard?.icon
32-
: <img src={constantCard?.icon as string} alt="" /> || <BsRssFill className="rss" />}
28+
: <img src={constantCard?.icon} alt="" /> || <BsRssFill className="rss" />}
3329
</button>
3430
)
3531
})}
36-
{
37-
<button
38-
aria-label="Open settings"
39-
className={'navigationItem '}
40-
onClick={() => {
41-
navigate('/settings/general')
42-
}}>
43-
{<AiOutlineMenu />}
44-
</button>
45-
}
4632
</div>
4733
)
4834
}

0 commit comments

Comments
 (0)