1
0
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:
David Walsh 2023-02-03 17:47:45 -06:00 committed by GitHub
parent 330cba61de
commit 678ad6397b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -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)}
/>
)}

View File

@ -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>