From a6467c3c85a4dd2252c8c12b5029d98a96e22ff5 Mon Sep 17 00:00:00 2001 From: mmv Date: Tue, 18 Jun 2019 14:57:11 +0400 Subject: [PATCH] modal ui --- .../ChangeThreshold/index.jsx | 123 ++++++++++-------- .../Settings/ThresholdSettings/index.jsx | 2 + 2 files changed, 70 insertions(+), 55 deletions(-) diff --git a/src/routes/safe/components/Settings/ThresholdSettings/ChangeThreshold/index.jsx b/src/routes/safe/components/Settings/ThresholdSettings/ChangeThreshold/index.jsx index 7d8b1544..4660e621 100644 --- a/src/routes/safe/components/Settings/ThresholdSettings/ChangeThreshold/index.jsx +++ b/src/routes/safe/components/Settings/ThresholdSettings/ChangeThreshold/index.jsx @@ -10,6 +10,7 @@ import { composeValidators, minValue, mustBeInteger, required, } from '~/components/forms/validator' import Field from '~/components/forms/Field' +import GnoForm from '~/components/forms/GnoForm' import Hairline from '~/components/layout/Hairline' import Paragraph from '~/components/layout/Paragraph' import Button from '~/components/layout/Button' @@ -28,63 +29,75 @@ type Props = { const ChangeThreshold = ({ onClose, owners, threshold, classes, -}: Props) => ( - - - - Change required confirmations - - - - - - - - - - Every transaction outside any specified daily limits, needs to be confirmed by all specified owners. If no - daily limits are set, all owners will need to sign for transactions. +}: Props) => { + const handleSubmit = () => ({}) + + return ( + + + + Change required confirmations + + + - - Any transaction over any daily limit requires the confirmation of: + + + + {() => ( + + + + Every transaction outside any specified daily limits, needs to be confirmed by all specified owners. + If no daily limits are set, all owners will need to sign for transactions. + + + + + Any transaction over any daily limit requires the confirmation of: + + + + + + {[...Array(Number(owners.size))].map((x, index) => ( + + {index + 1} + + ))} + + + + + out of + {' '} + {owners.size} + {' '} +owner(s) + + + + + )} + + + + + + - - - - {[...Array(Number(owners.size))].map((x, index) => ( - - {index + 1} - - ))} - - - - - out of - {' '} - {owners.size} - {' '} - owner(s) - - - - - - - - - - -) + + ) +} export default withStyles(styles)(ChangeThreshold) diff --git a/src/routes/safe/components/Settings/ThresholdSettings/index.jsx b/src/routes/safe/components/Settings/ThresholdSettings/index.jsx index d6cd64a4..8077c616 100644 --- a/src/routes/safe/components/Settings/ThresholdSettings/index.jsx +++ b/src/routes/safe/components/Settings/ThresholdSettings/index.jsx @@ -64,6 +64,8 @@ owners >