From 1c8a294584c346041dc184c1d6a75182db0cb961 Mon Sep 17 00:00:00 2001 From: Tom French Date: Thu, 9 Apr 2020 15:16:57 +0100 Subject: [PATCH] refactor: move stream creation methods to utils --- .../components/modals/CreateStreamModal.tsx | 23 ++++--- .../react-app/src/utils/proofs/deposit.ts | 30 +++++++++ packages/react-app/src/utils/proofs/index.ts | 1 + .../react-app/src/utils/stream/creation.ts | 64 +++---------------- 4 files changed, 53 insertions(+), 65 deletions(-) create mode 100644 packages/react-app/src/utils/proofs/deposit.ts diff --git a/packages/react-app/src/components/modals/CreateStreamModal.tsx b/packages/react-app/src/components/modals/CreateStreamModal.tsx index 936d311..5bc875b 100644 --- a/packages/react-app/src/components/modals/CreateStreamModal.tsx +++ b/packages/react-app/src/components/modals/CreateStreamModal.tsx @@ -214,21 +214,26 @@ export default function CreateStreamDialog({