Skip to content

Commit

Permalink
feat: update bride menu
Browse files Browse the repository at this point in the history
  • Loading branch information
rick23p committed Dec 11, 2024
1 parent 385b2e0 commit ddf21aa
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,29 +109,23 @@ export const BridgeMenuItem: FC<BridgeMenuItemProps> = ({ dataAttribute }) => {
dataAttribute={dataAttribute}
>
<Menu className="rounded-t-none rounded-b px-2 py-3 lg:rounded lg:p-1">
{isRskChain(chainId) && (
<MenuItem
key={t('header.nav.bridges.subMenu.ethBridge')}
text={t('header.nav.bridges.subMenu.ethBridge')}
label={
!isMobile &&
t('header.nav.bridges.subMenu.ethBridgeDescription')
}
dataAttribute={`dapp-menu-ethBridge`}
className={classNames('no-underline', {
hidden: isRskChain(chainId),
})}
onClick={handleEthClicked}
/>
)}
<MenuItem
key={t('header.nav.bridges.subMenu.btcBridge')}
text={t('header.nav.bridges.subMenu.btcBridge')}
key={t('header.nav.bridges.subMenu.ethBridge')}
text={t('header.nav.bridges.subMenu.ethBridge')}
label={
!isMobile && isRskChain(chainId)
? t('header.nav.bridges.subMenu.btcBridgeDescription')
: t('header.nav.bridges.subMenu.ethBridgeDescription')
!isMobile &&
t('header.nav.bridges.subMenu.ethBridgeDescription')
}
dataAttribute={`dapp-menu-ethBridge`}
className={classNames('no-underline', {
hidden: isRskChain(chainId),
})}
onClick={handleEthClicked}
/>
<MenuItem
key={t('header.nav.bridges.subMenu.btcBridge')}
text={t('header.nav.bridges.subMenu.btcBridge')}
label={t('header.nav.bridges.subMenu.btcBridgeDescription')}
dataAttribute={`dapp-menu-btcBridge`}
className={classNames('no-underline', {
hidden: !isRskChain(chainId),
Expand Down
2 changes: 1 addition & 1 deletion apps/frontend/src/locales/en/translations.json
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
"spicePoints": "Spice Points",
"bridges": {
"title": "Bridges",
"connectWallet": "Connect the wallet to use the bridges.",
"connectWallet": "Connect a wallet to use the bridges.",
"subMenu": {
"runeBridge": "Runes",
"runeBridgeDescription": "Transfer between Bitcoin and Sovryn",
Expand Down

0 comments on commit ddf21aa

Please sign in to comment.