Fix X of Y annotations in the modals

This commit is contained in:
Mikhail Mikheev 2019-09-06 17:22:32 +04:00
parent 71c8b8fdc8
commit dac7bbd553
11 changed files with 20 additions and 29 deletions

View File

@ -11,10 +11,10 @@ export const styles = () => ({
maxHeight: '75px', maxHeight: '75px',
}, },
annotation: { annotation: {
letterSpacing: '-1px',
color: secondaryText, color: secondaryText,
marginRight: 'auto', marginRight: 'auto',
marginLeft: '20px', marginLeft: '20px',
lineHeight: 'normal',
}, },
manage: { manage: {
fontSize: '24px', fontSize: '24px',

View File

@ -14,10 +14,10 @@ export const styles = () => ({
maxHeight: '75px', maxHeight: '75px',
}, },
annotation: { annotation: {
letterSpacing: '-1px',
color: secondaryText, color: secondaryText,
marginRight: 'auto', marginRight: 'auto',
marginLeft: '20px', marginLeft: '20px',
lineHeight: 'normal',
}, },
manage: { manage: {
fontSize: '24px', fontSize: '24px',

View File

@ -11,10 +11,10 @@ export const styles = () => ({
maxHeight: '75px', maxHeight: '75px',
}, },
annotation: { annotation: {
letterSpacing: '-1px',
color: secondaryText, color: secondaryText,
marginRight: 'auto', marginRight: 'auto',
marginLeft: '20px', marginLeft: '20px',
lineHeight: 'normal',
}, },
manage: { manage: {
fontSize: '24px', fontSize: '24px',

View File

@ -5,9 +5,8 @@ import {
export const styles = () => ({ export const styles = () => ({
heading: { heading: {
padding: `${sm} ${lg}`, padding: lg,
justifyContent: 'space-between', justifyContent: 'space-between',
maxHeight: '75px',
boxSizing: 'border-box', boxSizing: 'border-box',
}, },
manage: { manage: {
@ -15,7 +14,6 @@ export const styles = () => ({
}, },
container: { container: {
padding: `${md} ${lg}`, padding: `${md} ${lg}`,
paddingBottom: '40px',
}, },
close: { close: {
height: '35px', height: '35px',

View File

@ -34,19 +34,14 @@ type Props = {
} }
const CheckOwner = ({ const CheckOwner = ({
classes, classes, onClose, ownerAddress, ownerName, network, onSubmit,
onClose,
ownerAddress,
ownerName,
network,
onSubmit,
}: Props) => { }: Props) => {
const handleSubmit = (values) => { const handleSubmit = (values) => {
onSubmit(values) onSubmit(values)
} }
return ( return (
<React.Fragment> <>
<Row align="center" grow className={classes.heading}> <Row align="center" grow className={classes.heading}>
<Paragraph weight="bolder" className={classes.manage} noMargin> <Paragraph weight="bolder" className={classes.manage} noMargin>
Remove owner Remove owner
@ -59,9 +54,7 @@ const CheckOwner = ({
<Hairline /> <Hairline />
<Block className={classes.formContainer}> <Block className={classes.formContainer}>
<Row margin="md"> <Row margin="md">
<Paragraph> <Paragraph>Review the owner you want to remove from the active Safe:</Paragraph>
Review the owner you want to remove from the active Safe:
</Paragraph>
</Row> </Row>
<Row className={classes.owner}> <Row className={classes.owner}>
<Col xs={1} align="center"> <Col xs={1} align="center">
@ -100,7 +93,7 @@ const CheckOwner = ({
Next Next
</Button> </Button>
</Row> </Row>
</React.Fragment> </>
) )
} }

View File

@ -11,7 +11,7 @@ export const styles = () => ({
maxHeight: '75px', maxHeight: '75px',
}, },
annotation: { annotation: {
letterSpacing: '-1px', lineHeight: 'normal',
color: secondaryText, color: secondaryText,
marginRight: 'auto', marginRight: 'auto',
marginLeft: '20px', marginLeft: '20px',

View File

@ -14,7 +14,7 @@ export const styles = () => ({
maxHeight: '75px', maxHeight: '75px',
}, },
annotation: { annotation: {
letterSpacing: '-1px', lineHeight: 'normal',
color: secondaryText, color: secondaryText,
marginRight: 'auto', marginRight: 'auto',
marginLeft: '20px', marginLeft: '20px',

View File

@ -40,7 +40,7 @@ const ThresholdForm = ({
const defaultThreshold = threshold > 1 ? threshold - 1 : threshold const defaultThreshold = threshold > 1 ? threshold - 1 : threshold
return ( return (
<React.Fragment> <>
<Row align="center" grow className={classes.heading}> <Row align="center" grow className={classes.heading}>
<Paragraph weight="bolder" className={classes.manage} noMargin> <Paragraph weight="bolder" className={classes.manage} noMargin>
Remove owner Remove owner
@ -56,7 +56,7 @@ const ThresholdForm = ({
const numOptions = owners.size > 1 ? owners.size - 1 : 1 const numOptions = owners.size > 1 ? owners.size - 1 : 1
return ( return (
<React.Fragment> <>
<Block className={classes.formContainer}> <Block className={classes.formContainer}>
<Row> <Row>
<Paragraph weight="bolder" className={classes.headingText}> <Paragraph weight="bolder" className={classes.headingText}>
@ -72,8 +72,8 @@ const ThresholdForm = ({
<Col xs={2}> <Col xs={2}>
<Field <Field
name="threshold" name="threshold"
render={props => ( render={(props) => (
<React.Fragment> <>
<SelectField {...props} disableError> <SelectField {...props} disableError>
{[...Array(Number(numOptions))].map((x, index) => ( {[...Array(Number(numOptions))].map((x, index) => (
<MenuItem key={index} value={`${index + 1}`}> <MenuItem key={index} value={`${index + 1}`}>
@ -86,7 +86,7 @@ const ThresholdForm = ({
{props.meta.error} {props.meta.error}
</Paragraph> </Paragraph>
)} )}
</React.Fragment> </>
)} )}
validate={composeValidators(required, mustBeInteger, minValue(1), maxValue(numOptions))} validate={composeValidators(required, mustBeInteger, minValue(1), maxValue(numOptions))}
data-testid="threshold-select-input" data-testid="threshold-select-input"
@ -119,11 +119,11 @@ owner(s)
Review Review
</Button> </Button>
</Row> </Row>
</React.Fragment> </>
) )
}} }}
</GnoForm> </GnoForm>
</React.Fragment> </>
) )
} }

View File

@ -11,7 +11,7 @@ export const styles = () => ({
maxHeight: '75px', maxHeight: '75px',
}, },
annotation: { annotation: {
letterSpacing: '-1px', lineHeight: 'normal',
color: secondaryText, color: secondaryText,
marginRight: 'auto', marginRight: 'auto',
marginLeft: '20px', marginLeft: '20px',

View File

@ -11,10 +11,10 @@ export const styles = () => ({
maxHeight: '75px', maxHeight: '75px',
}, },
annotation: { annotation: {
letterSpacing: '-1px',
color: secondaryText, color: secondaryText,
marginRight: 'auto', marginRight: 'auto',
marginLeft: '20px', marginLeft: '20px',
lineHeight: 'normal',
}, },
manage: { manage: {
fontSize: '24px', fontSize: '24px',

View File

@ -14,10 +14,10 @@ export const styles = () => ({
maxHeight: '75px', maxHeight: '75px',
}, },
annotation: { annotation: {
letterSpacing: '-1px',
color: secondaryText, color: secondaryText,
marginRight: 'auto', marginRight: 'auto',
marginLeft: '20px', marginLeft: '20px',
lineHeight: 'normal',
}, },
manage: { manage: {
fontSize: '24px', fontSize: '24px',