Skip to content

Commit

Permalink
Change COLORS reference to Color (#17599)
Browse files Browse the repository at this point in the history
* Change COLORS reference to Color

* Fix lint
  • Loading branch information
darkwing authored Feb 3, 2023
1 parent 330cba6 commit 678ad63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions ui/components/app/flask/copyable/copyable.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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)}
/>
)}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -153,7 +154,7 @@ export default function ContractDetailsModal({
: ICON_NAMES.COPY
}
onClick={() => handleCopyTokenAddress(tokenAddress)}
color={COLORS.ICON_MUTED}
color={Color.iconMuted}
/>
</Tooltip>
</Box>
Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 678ad63

Please sign in to comment.