mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 09:57:02 +01:00
UX: Use classNames in ConnectedSitesMenu (#20067)
* UX: Use classNames in ConnectedSitesMenu * Update snapshots
This commit is contained in:
parent
26d7520a84
commit
112511542f
@ -27,7 +27,7 @@ exports[`Connected Site Menu should render the site menu in connected state 1`]
|
||||
style="bottom: 2px; right: -4px; z-index: 1;"
|
||||
>
|
||||
<div
|
||||
class="mm-box multichain-connected-site-menu__badge mm-box--background-color-success-default mm-box--rounded-full mm-box--border-color-background-default mm-box--border-width-3 box--border-style-solid"
|
||||
class="mm-box multichain-connected-site-menu__badge mm-box--background-color-success-default mm-box--rounded-full mm-box--border-color-background-default mm-box--border-width-3 box--border-style-solid"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
@ -64,7 +64,7 @@ exports[`Connected Site Menu should render the site menu in not connected state
|
||||
style="bottom: 2px; right: -4px; z-index: 1;"
|
||||
>
|
||||
<div
|
||||
class="mm-box multichain-connected-site-menu__badge mm-box--background-color-icon-alternative mm-box--rounded-full mm-box--border-color-background-default mm-box--border-width-3 box--border-style-solid"
|
||||
class="mm-box multichain-connected-site-menu__badge mm-box--background-color-icon-alternative mm-box--rounded-full mm-box--border-color-background-default mm-box--border-width-3 box--border-style-solid"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -64,11 +64,9 @@ export const ConnectedSiteMenu = ({
|
||||
badge={
|
||||
<Box
|
||||
backgroundColor={globalMenuColor}
|
||||
className={`multichain-connected-site-menu__badge ${
|
||||
status === STATUS_CONNECTED_TO_ANOTHER_ACCOUNT
|
||||
? 'not-connected'
|
||||
: ''
|
||||
}`}
|
||||
className={classNames('multichain-connected-site-menu__badge', {
|
||||
'not-connected': status === STATUS_CONNECTED_TO_ANOTHER_ACCOUNT,
|
||||
})}
|
||||
borderRadius={BorderRadius.full}
|
||||
borderColor={
|
||||
status === STATUS_CONNECTED_TO_ANOTHER_ACCOUNT
|
||||
|
Loading…
Reference in New Issue
Block a user