mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
UX Multichain: Fixed UI updates for header (#19006)
* Fixed UI updates for header * updated padding * replaced grey avatar border with white color and updated snapshots --------- Co-authored-by: David Walsh <davidwalsh83@gmail.com>
This commit is contained in:
parent
9062c347db
commit
6f15795c33
@ -62,20 +62,22 @@ export default function ConnectedStatusIndicator({ onClick }) {
|
|||||||
? t('tooltipSatusConnected')
|
? t('tooltipSatusConnected')
|
||||||
: t('tooltipSatusNotConnected');
|
: t('tooltipSatusNotConnected');
|
||||||
return (
|
return (
|
||||||
<button className="connected-status-indicator" onClick={onClick}>
|
<>
|
||||||
{process.env.MULTICHAIN ? (
|
{process.env.MULTICHAIN ? (
|
||||||
<MultichainConnectedSiteMenu
|
<MultichainConnectedSiteMenu
|
||||||
status={status}
|
status={status}
|
||||||
globalMenuColor={globalMenuColor}
|
globalMenuColor={globalMenuColor}
|
||||||
text={tooltipText}
|
text={tooltipText}
|
||||||
|
as="button"
|
||||||
|
onClick={onClick}
|
||||||
/>
|
/>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<button className="connected-status-indicator" onClick={onClick}>
|
||||||
<ColorIndicator color={indicatorColor} type={indicatorType} />
|
<ColorIndicator color={indicatorColor} type={indicatorType} />
|
||||||
<div className="connected-status-indicator__text">{text}</div>
|
<div className="connected-status-indicator__text">{text}</div>
|
||||||
</>
|
</button>
|
||||||
)}
|
)}
|
||||||
</button>
|
</>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -9,7 +9,7 @@ exports[`AccountPicker renders properly 1`] = `
|
|||||||
class="box mm-text mm-text--inherit mm-text--ellipsis box--display-flex box--gap-2 box--flex-direction-row box--align-items-center box--color-primary-inverse"
|
class="box mm-text mm-text--inherit mm-text--ellipsis box--display-flex box--gap-2 box--flex-direction-row box--align-items-center box--color-primary-inverse"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="box mm-text mm-avatar-base mm-avatar-base--size-sm mm-avatar-account mm-text--body-sm mm-text--text-transform-uppercase box--display-flex box--flex-direction-row box--justify-content-center box--align-items-center box--color-text-default box--background-color-background-alternative box--rounded-full box--border-color-border-default box--border-style-solid box--border-width-1"
|
class="box mm-text mm-avatar-base mm-avatar-base--size-xs mm-avatar-account mm-text--body-xs mm-text--text-transform-uppercase box--display-flex box--flex-direction-row box--justify-content-center box--align-items-center box--color-text-default box--background-color-background-alternative box--rounded-full box--border-color-background-default box--border-style-solid box--border-width-1"
|
||||||
>
|
>
|
||||||
<canvas
|
<canvas
|
||||||
height="32"
|
height="32"
|
||||||
@ -18,10 +18,10 @@ exports[`AccountPicker renders properly 1`] = `
|
|||||||
/>
|
/>
|
||||||
<img
|
<img
|
||||||
alt=""
|
alt=""
|
||||||
height="24"
|
height="16"
|
||||||
src="data:image/png;base64,00"
|
src="data:image/png;base64,00"
|
||||||
style="border-radius: 50%;"
|
style="border-radius: 50%;"
|
||||||
width="24"
|
width="16"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<span
|
<span
|
||||||
|
@ -42,7 +42,8 @@ export const AccountPicker = ({ address, name, onClick }) => {
|
|||||||
: AvatarAccountVariant.Jazzicon
|
: AvatarAccountVariant.Jazzicon
|
||||||
}
|
}
|
||||||
address={address}
|
address={address}
|
||||||
size={Size.SM}
|
size={Size.XS}
|
||||||
|
borderColor={BackgroundColor.backgroundDefault} // we currently don't have white color for border hence using backgroundDefault as the border
|
||||||
/>
|
/>
|
||||||
<Text as="span" fontWeight={FONT_WEIGHT.BOLD} ellipsis>
|
<Text as="span" fontWeight={FONT_WEIGHT.BOLD} ellipsis>
|
||||||
{name}
|
{name}
|
||||||
|
@ -25,7 +25,9 @@ import {
|
|||||||
import {
|
import {
|
||||||
AvatarNetwork,
|
AvatarNetwork,
|
||||||
ButtonIcon,
|
ButtonIcon,
|
||||||
|
ButtonIconSize,
|
||||||
IconName,
|
IconName,
|
||||||
|
IconSize,
|
||||||
PickerNetwork,
|
PickerNetwork,
|
||||||
} from '../../component-library';
|
} from '../../component-library';
|
||||||
|
|
||||||
@ -143,10 +145,11 @@ export const AppHeader = ({ onClick }) => {
|
|||||||
width={BLOCK_SIZES.FULL}
|
width={BLOCK_SIZES.FULL}
|
||||||
backgroundColor={BackgroundColor.backgroundDefault}
|
backgroundColor={BackgroundColor.backgroundDefault}
|
||||||
padding={2}
|
padding={2}
|
||||||
|
paddingLeft={4}
|
||||||
|
paddingRight={4}
|
||||||
gap={2}
|
gap={2}
|
||||||
>
|
>
|
||||||
<AvatarNetwork
|
<AvatarNetwork
|
||||||
margin={2}
|
|
||||||
className="multichain-app-header__contents--avatar-network"
|
className="multichain-app-header__contents--avatar-network"
|
||||||
ref={menuRef}
|
ref={menuRef}
|
||||||
as="button"
|
as="button"
|
||||||
@ -159,7 +162,6 @@ export const AppHeader = ({ onClick }) => {
|
|||||||
display={[DISPLAY.FLEX, DISPLAY.NONE]} // show on popover hide on desktop
|
display={[DISPLAY.FLEX, DISPLAY.NONE]} // show on popover hide on desktop
|
||||||
/>
|
/>
|
||||||
<PickerNetwork
|
<PickerNetwork
|
||||||
margin={2}
|
|
||||||
label={currentNetwork?.nickname}
|
label={currentNetwork?.nickname}
|
||||||
src={currentNetwork?.rpcPrefs?.imageUrl}
|
src={currentNetwork?.rpcPrefs?.imageUrl}
|
||||||
onClick={networkOpenCallback}
|
onClick={networkOpenCallback}
|
||||||
@ -202,96 +204,104 @@ export const AppHeader = ({ onClick }) => {
|
|||||||
<Box
|
<Box
|
||||||
display={DISPLAY.FLEX}
|
display={DISPLAY.FLEX}
|
||||||
alignItems={AlignItems.center}
|
alignItems={AlignItems.center}
|
||||||
justifyContent={JustifyContent.spaceBetween}
|
justifyContent={JustifyContent.flexEnd}
|
||||||
>
|
>
|
||||||
{showStatus ? (
|
<Box display={DISPLAY.FLEX} gap={4}>
|
||||||
<Box ref={menuRef}>
|
{showStatus ? (
|
||||||
<ConnectedStatusIndicator
|
<Box ref={menuRef}>
|
||||||
|
<ConnectedStatusIndicator
|
||||||
|
onClick={() => {
|
||||||
|
history.push(CONNECTED_ACCOUNTS_ROUTE);
|
||||||
|
trackEvent({
|
||||||
|
event: MetaMetricsEventName.NavConnectedSitesOpened,
|
||||||
|
category: MetaMetricsEventCategory.Navigation,
|
||||||
|
});
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Box>
|
||||||
|
) : null}{' '}
|
||||||
|
{popupStatus && multichainProductTourStep === 2 ? (
|
||||||
|
<ProductTour
|
||||||
|
className="multichain-app-header__product-tour"
|
||||||
|
anchorElement={menuRef.current}
|
||||||
|
closeMenu={() => setAccountOptionsMenuOpen(false)}
|
||||||
|
prevIcon
|
||||||
|
title={t('permissionsTitle')}
|
||||||
|
description={t('permissionsTourDescription')}
|
||||||
|
currentStep="2"
|
||||||
|
totalSteps="3"
|
||||||
|
prevClick={() =>
|
||||||
|
setMultichainProductTourStep(
|
||||||
|
multichainProductTourStep - 1,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
onClick={() =>
|
||||||
|
setMultichainProductTourStep(
|
||||||
|
multichainProductTourStep + 1,
|
||||||
|
)
|
||||||
|
}
|
||||||
|
positionObj={
|
||||||
|
productTourDirection === 'rtl' ? '76%' : '12%'
|
||||||
|
}
|
||||||
|
productTourDirection={productTourDirection}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
|
<Box
|
||||||
|
ref={menuRef}
|
||||||
|
display={DISPLAY.FLEX}
|
||||||
|
justifyContent={JustifyContent.flexEnd}
|
||||||
|
width={BLOCK_SIZES.FULL}
|
||||||
|
>
|
||||||
|
<ButtonIcon
|
||||||
|
iconName={IconName.MoreVertical}
|
||||||
|
data-testid="account-options-menu-button"
|
||||||
|
ariaLabel={t('accountOptions')}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
history.push(CONNECTED_ACCOUNTS_ROUTE);
|
|
||||||
trackEvent({
|
trackEvent({
|
||||||
event: MetaMetricsEventName.NavConnectedSitesOpened,
|
event: MetaMetricsEventName.NavAccountMenuOpened,
|
||||||
category: MetaMetricsEventCategory.Navigation,
|
category: MetaMetricsEventCategory.Navigation,
|
||||||
|
properties: {
|
||||||
|
location: 'Home',
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
setAccountOptionsMenuOpen(true);
|
||||||
}}
|
}}
|
||||||
|
size={ButtonIconSize.Sm}
|
||||||
|
iconProps={{ size: IconSize.Sm }}
|
||||||
/>
|
/>
|
||||||
</Box>
|
</Box>
|
||||||
) : null}{' '}
|
</Box>
|
||||||
{popupStatus && multichainProductTourStep === 2 ? (
|
{accountOptionsMenuOpen ? (
|
||||||
|
<GlobalMenu
|
||||||
|
anchorElement={menuRef.current}
|
||||||
|
closeMenu={() => setAccountOptionsMenuOpen(false)}
|
||||||
|
/>
|
||||||
|
) : null}
|
||||||
|
{showProductTour &&
|
||||||
|
popupStatus &&
|
||||||
|
multichainProductTourStep === 3 ? (
|
||||||
<ProductTour
|
<ProductTour
|
||||||
className="multichain-app-header__product-tour"
|
className="multichain-app-header__product-tour"
|
||||||
anchorElement={menuRef.current}
|
anchorElement={menuRef.current}
|
||||||
closeMenu={() => setAccountOptionsMenuOpen(false)}
|
closeMenu={() => setAccountOptionsMenuOpen(false)}
|
||||||
prevIcon
|
prevIcon
|
||||||
title={t('permissionsTitle')}
|
title={t('globalTitle')}
|
||||||
description={t('permissionsTourDescription')}
|
description={t('globalTourDescription')}
|
||||||
currentStep="2"
|
currentStep="3"
|
||||||
totalSteps="3"
|
totalSteps="3"
|
||||||
prevClick={() =>
|
prevClick={() =>
|
||||||
setMultichainProductTourStep(
|
setMultichainProductTourStep(
|
||||||
multichainProductTourStep - 1,
|
multichainProductTourStep - 1,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
onClick={() =>
|
onClick={() => {
|
||||||
setMultichainProductTourStep(
|
hideProductTour();
|
||||||
multichainProductTourStep + 1,
|
}}
|
||||||
)
|
positionObj={productTourDirection === 'rtl' ? '88%' : '0%'}
|
||||||
}
|
|
||||||
positionObj={productTourDirection === 'rtl' ? '74%' : '12%'}
|
|
||||||
productTourDirection={productTourDirection}
|
productTourDirection={productTourDirection}
|
||||||
/>
|
/>
|
||||||
) : null}
|
) : null}
|
||||||
<Box
|
|
||||||
ref={menuRef}
|
|
||||||
display={DISPLAY.FLEX}
|
|
||||||
justifyContent={JustifyContent.flexEnd}
|
|
||||||
width={BLOCK_SIZES.FULL}
|
|
||||||
>
|
|
||||||
<ButtonIcon
|
|
||||||
iconName={IconName.MoreVertical}
|
|
||||||
data-testid="account-options-menu-button"
|
|
||||||
ariaLabel={t('accountOptions')}
|
|
||||||
onClick={() => {
|
|
||||||
trackEvent({
|
|
||||||
event: MetaMetricsEventName.NavAccountMenuOpened,
|
|
||||||
category: MetaMetricsEventCategory.Navigation,
|
|
||||||
properties: {
|
|
||||||
location: 'Home',
|
|
||||||
},
|
|
||||||
});
|
|
||||||
setAccountOptionsMenuOpen(true);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</Box>
|
|
||||||
</Box>
|
</Box>
|
||||||
{accountOptionsMenuOpen ? (
|
|
||||||
<GlobalMenu
|
|
||||||
anchorElement={menuRef.current}
|
|
||||||
closeMenu={() => setAccountOptionsMenuOpen(false)}
|
|
||||||
/>
|
|
||||||
) : null}
|
|
||||||
{showProductTour &&
|
|
||||||
popupStatus &&
|
|
||||||
multichainProductTourStep === 3 ? (
|
|
||||||
<ProductTour
|
|
||||||
className="multichain-app-header__product-tour"
|
|
||||||
anchorElement={menuRef.current}
|
|
||||||
closeMenu={() => setAccountOptionsMenuOpen(false)}
|
|
||||||
prevIcon
|
|
||||||
title={t('globalTitle')}
|
|
||||||
description={t('globalTourDescription')}
|
|
||||||
currentStep="3"
|
|
||||||
totalSteps="3"
|
|
||||||
prevClick={() =>
|
|
||||||
setMultichainProductTourStep(multichainProductTourStep - 1)
|
|
||||||
}
|
|
||||||
onClick={() => {
|
|
||||||
hideProductTour();
|
|
||||||
}}
|
|
||||||
positionObj={productTourDirection === 'rtl' ? '89%' : '0%'}
|
|
||||||
productTourDirection={productTourDirection}
|
|
||||||
/>
|
|
||||||
) : null}
|
|
||||||
</Box>
|
</Box>
|
||||||
) : (
|
) : (
|
||||||
<Box
|
<Box
|
||||||
|
@ -2,8 +2,8 @@
|
|||||||
|
|
||||||
exports[`Multichain Connected Site Menu should render the site menu in connected state 1`] = `
|
exports[`Multichain Connected Site Menu should render the site menu in connected state 1`] = `
|
||||||
<div>
|
<div>
|
||||||
<div
|
<button
|
||||||
class="box multichain-connected-site-menu box--flex-direction-row"
|
class="box multichain-connected-site-menu box--display-flex box--flex-direction-row box--justify-content-center box--align-items-center box--background-color-background-default"
|
||||||
data-testid="connection-menu"
|
data-testid="connection-menu"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
@ -19,7 +19,7 @@ exports[`Multichain Connected Site Menu should render the site menu in connected
|
|||||||
class="box mm-badge-wrapper box--display-inline-block box--flex-direction-row"
|
class="box mm-badge-wrapper box--display-inline-block box--flex-direction-row"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="box mm-icon mm-icon--size-lg box--display-inline-block box--flex-direction-row box--color-icon-default"
|
class="box mm-icon mm-icon--size-sm box--display-inline-block box--flex-direction-row box--color-icon-default"
|
||||||
style="mask-image: url('./images/icons/global.svg');"
|
style="mask-image: url('./images/icons/global.svg');"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
@ -33,14 +33,14 @@ exports[`Multichain Connected Site Menu should render the site menu in connected
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`Multichain Connected Site Menu should render the site menu in not connected state 1`] = `
|
exports[`Multichain Connected Site Menu should render the site menu in not connected state 1`] = `
|
||||||
<div>
|
<div>
|
||||||
<div
|
<button
|
||||||
class="box multichain-connected-site-menu box--flex-direction-row"
|
class="box multichain-connected-site-menu box--display-flex box--flex-direction-row box--justify-content-center box--align-items-center box--background-color-background-default"
|
||||||
data-testid="connection-menu"
|
data-testid="connection-menu"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
@ -56,7 +56,7 @@ exports[`Multichain Connected Site Menu should render the site menu in not conne
|
|||||||
class="box mm-badge-wrapper box--display-inline-block box--flex-direction-row"
|
class="box mm-badge-wrapper box--display-inline-block box--flex-direction-row"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="box mm-icon mm-icon--size-lg box--display-inline-block box--flex-direction-row box--color-icon-default"
|
class="box mm-icon mm-icon--size-sm box--display-inline-block box--flex-direction-row box--color-icon-default"
|
||||||
style="mask-image: url('./images/icons/global.svg');"
|
style="mask-image: url('./images/icons/global.svg');"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
@ -70,14 +70,14 @@ exports[`Multichain Connected Site Menu should render the site menu in not conne
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
|
||||||
exports[`Multichain Connected Site Menu should render the site menu in not connected to current account state 1`] = `
|
exports[`Multichain Connected Site Menu should render the site menu in not connected to current account state 1`] = `
|
||||||
<div>
|
<div>
|
||||||
<div
|
<button
|
||||||
class="box multichain-connected-site-menu box--flex-direction-row"
|
class="box multichain-connected-site-menu box--display-flex box--flex-direction-row box--justify-content-center box--align-items-center box--background-color-background-default"
|
||||||
data-testid="connection-menu"
|
data-testid="connection-menu"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
@ -93,7 +93,7 @@ exports[`Multichain Connected Site Menu should render the site menu in not conne
|
|||||||
class="box mm-badge-wrapper box--display-inline-block box--flex-direction-row"
|
class="box mm-badge-wrapper box--display-inline-block box--flex-direction-row"
|
||||||
>
|
>
|
||||||
<span
|
<span
|
||||||
class="box mm-icon mm-icon--size-lg box--display-inline-block box--flex-direction-row box--color-icon-default"
|
class="box mm-icon mm-icon--size-sm box--display-inline-block box--flex-direction-row box--color-icon-default"
|
||||||
style="mask-image: url('./images/icons/global.svg');"
|
style="mask-image: url('./images/icons/global.svg');"
|
||||||
/>
|
/>
|
||||||
<div
|
<div
|
||||||
@ -107,6 +107,6 @@ exports[`Multichain Connected Site Menu should render the site menu in not conne
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
@ -1,21 +1,25 @@
|
|||||||
.multichain-connected-site-menu {
|
.multichain-connected-site-menu {
|
||||||
|
height: 24px;
|
||||||
|
width: 24px;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
&__badge {
|
&__badge {
|
||||||
height: 16px;
|
height: 12px;
|
||||||
width: 16px;
|
width: 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__badge.not-connected {
|
&__badge.not-connected {
|
||||||
height: 10px;
|
height: 8px;
|
||||||
width: 10px;
|
width: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
&__badge.not-connected::after {
|
&__badge.not-connected::after {
|
||||||
content: '';
|
content: '';
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: -3px;
|
top: -2px;
|
||||||
left: -3px;
|
left: -2px;
|
||||||
right: -3px;
|
right: -2px;
|
||||||
bottom: -3px;
|
bottom: -2px;
|
||||||
background: var(--color-background-default);
|
background: var(--color-background-default);
|
||||||
z-index: -1;
|
z-index: -1;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
|
@ -7,13 +7,20 @@ import {
|
|||||||
STATUS_NOT_CONNECTED,
|
STATUS_NOT_CONNECTED,
|
||||||
} from '../../../helpers/constants/connected-sites';
|
} from '../../../helpers/constants/connected-sites';
|
||||||
import {
|
import {
|
||||||
|
AlignItems,
|
||||||
BackgroundColor,
|
BackgroundColor,
|
||||||
BorderColor,
|
BorderColor,
|
||||||
BorderRadius,
|
BorderRadius,
|
||||||
|
DISPLAY,
|
||||||
IconColor,
|
IconColor,
|
||||||
Size,
|
JustifyContent,
|
||||||
} from '../../../helpers/constants/design-system';
|
} from '../../../helpers/constants/design-system';
|
||||||
import { BadgeWrapper, Icon, IconName } from '../../component-library';
|
import {
|
||||||
|
BadgeWrapper,
|
||||||
|
Icon,
|
||||||
|
IconName,
|
||||||
|
IconSize,
|
||||||
|
} from '../../component-library';
|
||||||
import Box from '../../ui/box';
|
import Box from '../../ui/box';
|
||||||
import { getSelectedIdentity } from '../../../selectors';
|
import { getSelectedIdentity } from '../../../selectors';
|
||||||
import Tooltip from '../../ui/tooltip';
|
import Tooltip from '../../ui/tooltip';
|
||||||
@ -24,6 +31,7 @@ export const MultichainConnectedSiteMenu = ({
|
|||||||
globalMenuColor,
|
globalMenuColor,
|
||||||
status,
|
status,
|
||||||
text,
|
text,
|
||||||
|
onClick,
|
||||||
}) => {
|
}) => {
|
||||||
const t = useI18nContext();
|
const t = useI18nContext();
|
||||||
const selectedAccount = useSelector(getSelectedIdentity);
|
const selectedAccount = useSelector(getSelectedIdentity);
|
||||||
@ -31,6 +39,12 @@ export const MultichainConnectedSiteMenu = ({
|
|||||||
<Box
|
<Box
|
||||||
className={classNames('multichain-connected-site-menu', className)}
|
className={classNames('multichain-connected-site-menu', className)}
|
||||||
data-testid="connection-menu"
|
data-testid="connection-menu"
|
||||||
|
as="button"
|
||||||
|
onClick={onClick}
|
||||||
|
display={DISPLAY.FLEX}
|
||||||
|
alignItems={AlignItems.center}
|
||||||
|
justifyContent={JustifyContent.center}
|
||||||
|
backgroundColor={BackgroundColor.backgroundDefault}
|
||||||
>
|
>
|
||||||
<Tooltip
|
<Tooltip
|
||||||
title={
|
title={
|
||||||
@ -69,7 +83,7 @@ export const MultichainConnectedSiteMenu = ({
|
|||||||
>
|
>
|
||||||
<Icon
|
<Icon
|
||||||
name={IconName.Global}
|
name={IconName.Global}
|
||||||
size={Size.LG}
|
size={IconSize.Sm}
|
||||||
color={IconColor.iconDefault}
|
color={IconColor.iconDefault}
|
||||||
/>
|
/>
|
||||||
</BadgeWrapper>
|
</BadgeWrapper>
|
||||||
@ -95,4 +109,8 @@ MultichainConnectedSiteMenu.propTypes = {
|
|||||||
* Connection status message
|
* Connection status message
|
||||||
*/
|
*/
|
||||||
text: PropTypes.string,
|
text: PropTypes.string,
|
||||||
|
/**
|
||||||
|
* onClick handler to be passed
|
||||||
|
*/
|
||||||
|
onClick: PropTypes.func,
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user