From e0c70551ee9bdbfe2adfe48f49a8dddb6f3c5d21 Mon Sep 17 00:00:00 2001 From: mmv Date: Mon, 29 Apr 2019 19:20:07 +0400 Subject: [PATCH] create sendModal component --- src/components/layout/Button/index.jsx | 6 +-- .../{AssetTableCell.js => AssetTableCell.jsx} | 0 .../safe/components/Balances/Send/index.jsx | 19 ------- .../components/Balances/SendModal/index.jsx | 50 +++++++++++++++++++ .../screens/ChooseTxType/index.jsx} | 13 +++-- .../SendModal/screens/SendFunds/index.jsx | 47 +++++++++++++++++ .../safe/components/Balances/Tokens/index.jsx | 3 +- src/routes/safe/components/Balances/index.jsx | 12 +---- src/routes/safe/components/Balances/style.js | 4 -- 9 files changed, 114 insertions(+), 40 deletions(-) rename src/routes/safe/components/Balances/AssetTableCell/{AssetTableCell.js => AssetTableCell.jsx} (100%) delete mode 100644 src/routes/safe/components/Balances/Send/index.jsx create mode 100644 src/routes/safe/components/Balances/SendModal/index.jsx rename src/routes/safe/components/Balances/{Send/screens/ChooseTxType/index.js => SendModal/screens/ChooseTxType/index.jsx} (82%) create mode 100644 src/routes/safe/components/Balances/SendModal/screens/SendFunds/index.jsx diff --git a/src/components/layout/Button/index.jsx b/src/components/layout/Button/index.jsx index c7a08e5d..41808b76 100644 --- a/src/components/layout/Button/index.jsx +++ b/src/components/layout/Button/index.jsx @@ -14,13 +14,13 @@ type Props = { minHeight?: number, } -const calculateStyleBased = ({ minWidth, minHeight }) => ({ +const calculateStyleBased = (minWidth, minHeight) => ({ minWidth: minWidth && `${minWidth}px`, minHeight: minHeight && `${minHeight}px`, }) -const GnoButton = (props: Props) => { - const style = calculateStyleBased(props) +const GnoButton = ({ minWidth, minHeight, ...props }: Props) => { + const style = calculateStyleBased(minWidth, minHeight) return