Add and fix styles

This commit is contained in:
Germán Martínez 2019-06-14 18:03:52 +02:00
parent f6b2bb098e
commit 104609b66e
7 changed files with 22 additions and 8 deletions

View File

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View File

@ -23,8 +23,7 @@ import OpenPaper from '~/components/Stepper/OpenPaper'
import { getAccountsFrom } from '~/routes/open/utils/safeDataExtractor' import { getAccountsFrom } from '~/routes/open/utils/safeDataExtractor'
import Hairline from '~/components/layout/Hairline' import Hairline from '~/components/layout/Hairline'
import { md, lg, sm } from '~/theme/variables' import { md, lg, sm } from '~/theme/variables'
import trash from '~/assets/icons/trash.svg'
const trash = require('../../assets/trash.svg')
type Props = { type Props = {
classes: Object, classes: Object,

View File

@ -42,7 +42,7 @@ const Tokens = (props: Props) => {
return ( return (
<React.Fragment> <React.Fragment>
<Row align="center" grow className={classes.heading}> <Row align="center" grow className={classes.heading}>
<Paragraph className={classes.manage} noMargin> <Paragraph className={classes.manage} noMargin weight="bolder">
Manage Tokens Manage Tokens
</Paragraph> </Paragraph>
<IconButton onClick={onClose} disableRipple data-testid={MANAGE_TOKENS_MODAL_CLOSE_BUTTON_TEST_ID}> <IconButton onClick={onClose} disableRipple data-testid={MANAGE_TOKENS_MODAL_CLOSE_BUTTON_TEST_ID}>

View File

@ -51,7 +51,7 @@ const RemoveSafeComponent = ({
open={isOpen} open={isOpen}
> >
<Row align="center" grow className={classes.heading}> <Row align="center" grow className={classes.heading}>
<Paragraph className={classes.manage} noMargin> <Paragraph className={classes.manage} noMargin weight="bolder" >
Remove Safe Remove Safe
</Paragraph> </Paragraph>
<IconButton onClick={onClose} disableRipple> <IconButton onClick={onClose} disableRipple>
@ -66,7 +66,7 @@ const RemoveSafeComponent = ({
</Col> </Col>
<Col xs={11}> <Col xs={11}>
<Block className={classNames(classes.name, classes.userName)}> <Block className={classNames(classes.name, classes.userName)}>
<Paragraph size="lg" noMargin> <Paragraph size="lg" noMargin weight="bolder">
{safeName} {safeName}
</Paragraph> </Paragraph>
<Block align="center" className={classes.user}> <Block align="center" className={classes.user}>

View File

@ -51,7 +51,7 @@ const UpdateSafeName = (props: Props) => {
{() => ( {() => (
<React.Fragment> <React.Fragment>
<Block className={classes.formContainer}> <Block className={classes.formContainer}>
<Paragraph noMargin className={classes.title} size="lg"> <Paragraph noMargin className={classes.title} size="lg" weight="bolder">
Modify Safe name Modify Safe name
</Paragraph> </Paragraph>
<Block className={classes.root}> <Block className={classes.root}>

View File

@ -1,4 +1,17 @@
// @flow // @flow
import { lg, border } from '~/theme/variables' import { lg, border } from '~/theme/variables'
export const styles = () => ({}) export const styles = () => ({
title: {
padding: `${lg} 0 20px`,
fontSize: '16px',
},
formContainer: {
padding: '0 20px',
minHeight: '369px',
},
root: {
display: 'flex',
maxWidth: '460px',
},
})

View File

@ -70,7 +70,9 @@ class Settings extends React.Component<Props, State> {
<React.Fragment> <React.Fragment>
<Row align="center" className={classes.message}> <Row align="center" className={classes.message}>
<Col xs={6}> <Col xs={6}>
<Paragraph className={classes.settings}>Settings</Paragraph> <Paragraph className={classes.settings} size="lg" weight="bolder">
Settings
</Paragraph>
</Col> </Col>
<Col xs={6} end="sm"> <Col xs={6} end="sm">
<Paragraph noMargin size="md" color="error" className={classes.links} onClick={this.onShow('RemoveSafe')}> <Paragraph noMargin size="md" color="error" className={classes.links} onClick={this.onShow('RemoveSafe')}>