mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Dark mode: Updating currency input icon (#14152)
This commit is contained in:
parent
00e64eb6c1
commit
90e4b35db5
@ -1 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path d="M16 17.01V10h-2v7.01h-3L15 21l4-3.99h-3zM9 3L5 6.99h3V14h2V6.99h3L9 3z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
|
|
Before Width: | Height: | Size: 209 B |
@ -160,7 +160,9 @@ export default function CurrencyInput({
|
|||||||
onChange={handleChange}
|
onChange={handleChange}
|
||||||
value={decimalValue}
|
value={decimalValue}
|
||||||
actionComponent={
|
actionComponent={
|
||||||
<div className="currency-input__swap-component" onClick={swap} />
|
<button className="currency-input__swap-component" onClick={swap}>
|
||||||
|
<i className="fa fa-retweet fa-lg" />
|
||||||
|
</button>
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
{renderConversionComponent()}
|
{renderConversionComponent()}
|
||||||
|
25
ui/components/app/currency-input/currency-input.stories.js
Normal file
25
ui/components/app/currency-input/currency-input.stories.js
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
import React from 'react';
|
||||||
|
import CurrencyInput from '.';
|
||||||
|
|
||||||
|
export default {
|
||||||
|
title: 'Components/App/CurrencyInput',
|
||||||
|
id: __filename,
|
||||||
|
argTypes: {
|
||||||
|
hexValue: {
|
||||||
|
control: 'text',
|
||||||
|
},
|
||||||
|
featureSecondary: {
|
||||||
|
control: 'boolean',
|
||||||
|
},
|
||||||
|
onChange: {
|
||||||
|
action: 'onChange',
|
||||||
|
},
|
||||||
|
onPreferenceToggle: {
|
||||||
|
action: 'onPreferenceToggle',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
export const DefaultStory = (args) => <CurrencyInput {...args} />;
|
||||||
|
|
||||||
|
DefaultStory.storyName = 'Default';
|
@ -7,20 +7,12 @@
|
|||||||
|
|
||||||
&__swap-component {
|
&__swap-component {
|
||||||
flex: 0 0 auto;
|
flex: 0 0 auto;
|
||||||
height: 24px;
|
display: flex;
|
||||||
width: 24px;
|
align-items: center;
|
||||||
background-image: url("images/icons/swap.svg");
|
justify-content: center;
|
||||||
background-size: contain;
|
color: var(--color-icon-default);
|
||||||
background-repeat: no-repeat;
|
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
opacity: 0.4;
|
background: none;
|
||||||
|
border: none;
|
||||||
&:hover {
|
|
||||||
opacity: 0.3;
|
|
||||||
}
|
|
||||||
|
|
||||||
&:active {
|
|
||||||
opacity: 0.5;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user