1
0
mirror of https://github.com/trezor/trezor-wallet synced 2025-01-03 21:00:55 +00:00

style set default button as a green link

This commit is contained in:
slowbackspace 2019-01-17 18:22:05 +01:00
parent d919dc00d7
commit a17ba7dfce

View File

@ -4,6 +4,7 @@ import * as React from 'react';
import styled from 'styled-components'; import styled from 'styled-components';
import colors from 'config/colors'; import colors from 'config/colors';
import Link from 'components/Link';
import Input from 'components/inputs/Input'; import Input from 'components/inputs/Input';
import Textarea from 'components/Textarea'; import Textarea from 'components/Textarea';
import Tooltip from 'components/Tooltip'; import Tooltip from 'components/Tooltip';
@ -117,7 +118,10 @@ const Right = styled.div`
display: flex; display: flex;
flex-direction: row; flex-direction: row;
font-size: ${FONT_SIZE.SMALL}; font-size: ${FONT_SIZE.SMALL};
cursor: pointer; `;
const StyledLink = styled(Link)`
white-space: nowrap;
`; `;
// stateless component // stateless component
@ -190,8 +194,8 @@ const AdvancedForm = (props: Props) => {
</Tooltip> </Tooltip>
</Left> </Left>
{ showDefaultGasLimitButton && ( { showDefaultGasLimitButton && (
<Right onClick={() => setDefaultGasLimit()}> <Right>
Set default <StyledLink onClick={setDefaultGasLimit} isGreen>Set default</StyledLink>
</Right>) </Right>)
} }
</InputLabelWrapper> </InputLabelWrapper>