From b457ed78efb112783168371a7988f13824ae3739 Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Thu, 12 Sep 2019 18:15:09 +0400 Subject: [PATCH] Remove container prop from OpenPaper because after rebranding the designs are full-width, reduce stepper content maxWidth, reduce font-size in load owners owners step annotation --- src/components/Stepper/OpenPaper/index.jsx | 27 ++++++------------- .../load/components/DetailsForm/index.jsx | 2 +- .../load/components/OwnerList/index.jsx | 4 +-- .../open/components/SafeNameForm/index.jsx | 2 +- 4 files changed, 12 insertions(+), 23 deletions(-) diff --git a/src/components/Stepper/OpenPaper/index.jsx b/src/components/Stepper/OpenPaper/index.jsx index 95313f68..012db27d 100644 --- a/src/components/Stepper/OpenPaper/index.jsx +++ b/src/components/Stepper/OpenPaper/index.jsx @@ -8,7 +8,7 @@ import { lg } from '~/theme/variables' const styles = () => ({ root: { margin: '10px', - maxWidth: '870px', + maxWidth: '770px', boxShadow: '0 0 10px 0 rgba(33,48,77,0.10)', }, padding: { @@ -20,27 +20,16 @@ type Props = { classes: Object, children: React.Node, controls: React.Node, - container?: number, padding?: boolean, } -const generateContainerStyleFrom = (container?: number) => ({ - maxWidth: container ? `${container}px` : undefined, -}) - const OpenPaper = ({ - classes, children, controls, container, padding = true, -}: Props) => { - const containerStyle = generateContainerStyleFrom(container) - - return ( - - - {children} - - {controls} - - ) -} + classes, children, controls, padding = true, +}: Props) => ( + + {children} + {controls} + +) export default withStyles(styles)(OpenPaper) diff --git a/src/routes/load/components/DetailsForm/index.jsx b/src/routes/load/components/DetailsForm/index.jsx index 1e54cec9..843630de 100644 --- a/src/routes/load/components/DetailsForm/index.jsx +++ b/src/routes/load/components/DetailsForm/index.jsx @@ -162,7 +162,7 @@ const DetailsForm = withStyles(styles)(Details) const DetailsPage = () => (controls: React.Node, { errors, form }: Object) => ( <> - + diff --git a/src/routes/load/components/OwnerList/index.jsx b/src/routes/load/components/OwnerList/index.jsx index 8dab61dc..5bb560a5 100644 --- a/src/routes/load/components/OwnerList/index.jsx +++ b/src/routes/load/components/OwnerList/index.jsx @@ -113,7 +113,7 @@ const OwnerListComponent = (props: Props) => { return ( <> - + {`This Safe has ${owners.length} owners. Optional: Provide a name for each owner.`} @@ -138,7 +138,7 @@ const OwnerListComponent = (props: Props) => { text="Owner Name" /> - + diff --git a/src/routes/open/components/SafeNameForm/index.jsx b/src/routes/open/components/SafeNameForm/index.jsx index d243115f..6671491e 100644 --- a/src/routes/open/components/SafeNameForm/index.jsx +++ b/src/routes/open/components/SafeNameForm/index.jsx @@ -83,7 +83,7 @@ const SafeName = ({ classes }: Props) => ( const SafeNameForm = withStyles(styles)(SafeName) const SafeNamePage = () => (controls: React.Node) => ( - + )