fix `<DropdownMenu.SubTrigger>` icon; unknown network typo (#629)

This commit is contained in:
Jakub Kotula 2024-10-18 13:18:57 +02:00 committed by GitHub
parent 322df8d47e
commit e30555c865
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 8 additions and 3 deletions

View File

@ -0,0 +1,5 @@
---
"@status-im/components": patch
---
fix <DropdownMenu.SubTrigger /> icon; unknown network typo

View File

@ -4,7 +4,7 @@ export const networks = {
hermez: 'rgba(235 132 98 / 100%)',
optimism: 'rgba(231 110 110 / 100%)',
polygon: 'rgba(173 113 243 / 100%)',
unknow: 'rgba(238 242 245 / 100%)',
unknown: 'rgba(238 242 245 / 100%)',
'x-dai': 'rgba(63 192 189 / 100%)',
'zk-sync': 'rgba(159 160 254 / 100%)',
}

View File

@ -2,8 +2,8 @@ import { cloneElement, forwardRef, useId } from 'react'
import * as DropdownMenu from '@radix-ui/react-dropdown-menu'
import {
ArrowRightIcon,
CheckIcon,
ChevronRightIcon,
ExternalIcon,
SearchIcon,
} from '@status-im/icons/20'
@ -301,7 +301,7 @@ export const SubTrigger = (props: SubTriggerProps) => {
<span className={iconStyles({ danger })}>{cloneElement(icon)}</span>
)}
<span className={labelStyles({ danger })}>{label}</span>
<ArrowRightIcon className="text-neutral-50" />
<ChevronRightIcon className="text-neutral-50" />
</DropdownMenu.SubTrigger>
)
}