mirror of
https://github.com/status-im/nimbus-gui.git
synced 2025-02-11 10:56:35 +00:00
fix: change icon from left bar component name
This commit is contained in:
parent
1041b08454
commit
90434dca47
@ -11,7 +11,7 @@ import {
|
||||
import { YStack } from 'tamagui'
|
||||
import { useSelector } from 'react-redux'
|
||||
|
||||
import IconButtonWithDot from './IconButtonWithDot'
|
||||
import LeftSidebarIconButton from './LeftSidebarIconButton'
|
||||
|
||||
const LeftSidebar = () => {
|
||||
const buttons = useSelector((state: any) => state.leftSidebar.buttons)
|
||||
@ -52,7 +52,7 @@ const LeftSidebar = () => {
|
||||
}}
|
||||
>
|
||||
{buttons.map((button: any) => (
|
||||
<IconButtonWithDot
|
||||
<LeftSidebarIconButton
|
||||
key={button.id}
|
||||
iconEl={renderIcon(button.id)}
|
||||
variant={button.isDisabled ? 'outline' : 'ghost'}
|
||||
|
@ -13,7 +13,7 @@ type IconButtonWithDotProps = {
|
||||
id: string
|
||||
}
|
||||
|
||||
const IconButtonWithDot = ({
|
||||
const LeftSidebarIconButton = ({
|
||||
iconEl,
|
||||
variant,
|
||||
isDotOn,
|
||||
@ -52,4 +52,4 @@ const IconButtonWithDot = ({
|
||||
)
|
||||
}
|
||||
|
||||
export default IconButtonWithDot
|
||||
export default LeftSidebarIconButton
|
Loading…
x
Reference in New Issue
Block a user