create safe flow rebranding wip

This commit is contained in:
Mikhail Mikheev 2019-08-30 19:19:05 +04:00
parent 35cf521b40
commit d09b27df85
5 changed files with 14 additions and 16 deletions

View File

@ -188,7 +188,7 @@ class ReviewComponent extends React.PureComponent<Props, State> {
</Block> </Block>
</Col> </Col>
</Row> </Row>
<Hairline /> {index !== owners.length - 1 && <Hairline />}
</React.Fragment> </React.Fragment>
))} ))}
</Col> </Col>

View File

@ -56,7 +56,7 @@ const ScanQRModal = ({
return ( return (
<Modal title="Receive Tokens" description="Receive Tokens Form" handleClose={onClose} open={isOpen}> <Modal title="Receive Tokens" description="Receive Tokens Form" handleClose={onClose} open={isOpen}>
<Row align="center" grow className={classes.heading}> <Row align="center" grow className={classes.heading}>
<Paragraph className={classes.manage} weight="bolder" noMargin> <Paragraph size="xl" noMargin>
Scan QR Scan QR
</Paragraph> </Paragraph>
<IconButton onClick={onClose} disableRipple> <IconButton onClick={onClose} disableRipple>
@ -88,18 +88,15 @@ const ScanQRModal = ({
<Button <Button
color="secondary" color="secondary"
className={classes.button} className={classes.button}
minHeight={42} minWidth={154}
minWidth={140}
onClick={onClose} onClick={onClose}
variant="contained"
> >
Close Close
</Button> </Button>
<Button <Button
color="primary" color="primary"
className={classes.button} className={classes.button}
minWidth={140} minWidth={154}
minHeight={42}
onClick={() => { onClick={() => {
if (hasWebcam) { if (hasWebcam) {
setHasWebcam(false) setHasWebcam(false)

View File

@ -3,7 +3,7 @@ import { lg, sm, background } from '~/theme/variables'
export const styles = () => ({ export const styles = () => ({
heading: { heading: {
padding: `${sm} ${lg}`, padding: lg,
justifyContent: 'space-between', justifyContent: 'space-between',
maxHeight: '75px', maxHeight: '75px',
boxSizing: 'border-box', boxSizing: 'border-box',
@ -12,12 +12,9 @@ export const styles = () => ({
width: '100%', width: '100%',
height: '100%', height: '100%',
}, },
manage: {
fontSize: '24px',
},
close: { close: {
height: '35px', height: '25px',
width: '35px', width: '25px',
}, },
detailsContainer: { detailsContainer: {
backgroundColor: background, backgroundColor: background,

View File

@ -42,7 +42,7 @@ type Props = {
const { useState } = React const { useState } = React
export const ADD_OWNER_BUTTON = '+ ADD ANOTHER OWNER' export const ADD_OWNER_BUTTON = '+ Add another owner'
export const calculateValuesAfterRemoving = (index: number, notRemovedOwners: number, values: Object) => { export const calculateValuesAfterRemoving = (index: number, notRemovedOwners: number, values: Object) => {
const initialValues = { ...values } const initialValues = { ...values }
@ -176,7 +176,7 @@ const SafeOwners = (props: Props) => {
</Block> </Block>
<Row align="center" grow className={classes.add} margin="xl"> <Row align="center" grow className={classes.add} margin="xl">
<Button color="secondary" onClick={onAddOwner} data-testid="add-owner-btn"> <Button color="secondary" onClick={onAddOwner} data-testid="add-owner-btn">
<Paragraph weight="bold" size="md" noMargin> <Paragraph size="md" noMargin>
{ADD_OWNER_BUTTON} {ADD_OWNER_BUTTON}
</Paragraph> </Paragraph>
</Button> </Button>

View File

@ -1,5 +1,7 @@
// @flow // @flow
import { md, lg, sm } from '~/theme/variables' import {
md, lg, sm, disabled, extraSmallFontSize,
} from '~/theme/variables'
export const styles = () => ({ export const styles = () => ({
root: { root: {
@ -17,6 +19,8 @@ export const styles = () => ({
}, },
header: { header: {
padding: `${sm} ${lg}`, padding: `${sm} ${lg}`,
fontSize: extraSmallFontSize,
color: disabled,
}, },
name: { name: {
marginRight: `${sm}`, marginRight: `${sm}`,