mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
Change COLORS reference to Color (#17599)
* Change COLORS reference to Color * Fix lint
This commit is contained in:
parent
330cba61de
commit
678ad6397b
@ -11,6 +11,7 @@ import {
|
||||
TypographyVariant,
|
||||
BackgroundColor,
|
||||
TextColor,
|
||||
Color,
|
||||
} from '../../../../helpers/constants/design-system';
|
||||
import { useCopyToClipboard } from '../../../../hooks/useCopyToClipboard';
|
||||
import { Icon, ICON_NAMES, ICON_SIZES } from '../../../component-library';
|
||||
@ -48,13 +49,13 @@ export const Copyable = ({ text }) => {
|
||||
<Icon
|
||||
name={ICON_NAMES.COPY_SUCCESS}
|
||||
size={ICON_SIZES.LG}
|
||||
color={COLORS.ICON_ALTERNATIVE}
|
||||
color={Color.iconAlternative}
|
||||
/>
|
||||
) : (
|
||||
<Icon
|
||||
name={ICON_NAMES.COPY}
|
||||
size={ICON_SIZES.LG}
|
||||
color={COLORS.ICON_ALTERNATIVE}
|
||||
color={Color.iconAlternative}
|
||||
onClick={() => handleCopy(text)}
|
||||
/>
|
||||
)}
|
||||
|
@ -21,6 +21,7 @@ import {
|
||||
BorderStyle,
|
||||
BorderColor,
|
||||
TextColor,
|
||||
Color,
|
||||
} from '../../../../helpers/constants/design-system';
|
||||
import { useCopyToClipboard } from '../../../../hooks/useCopyToClipboard';
|
||||
import UrlIcon from '../../../ui/url-icon/url-icon';
|
||||
@ -153,7 +154,7 @@ export default function ContractDetailsModal({
|
||||
: ICON_NAMES.COPY
|
||||
}
|
||||
onClick={() => handleCopyTokenAddress(tokenAddress)}
|
||||
color={COLORS.ICON_MUTED}
|
||||
color={Color.iconMuted}
|
||||
/>
|
||||
</Tooltip>
|
||||
</Box>
|
||||
@ -269,7 +270,7 @@ export default function ContractDetailsModal({
|
||||
copiedToAddress ? ICON_NAMES.COPY_SUCCESS : ICON_NAMES.COPY
|
||||
}
|
||||
onClick={() => handleCopyToAddress(toAddress)}
|
||||
color={COLORS.ICON_MUTED}
|
||||
color={Color.iconMuted}
|
||||
/>
|
||||
</Tooltip>
|
||||
</Box>
|
||||
|
Loading…
Reference in New Issue
Block a user