From 498e5a17303c1361968581987fa93a6ffc58e80e Mon Sep 17 00:00:00 2001 From: Matthias Kretschmann Date: Thu, 2 Nov 2023 21:47:14 +0000 Subject: [PATCH] new send/preview flow --- src/components/Footer/index.astro | 2 +- src/components/Header/index.astro | 2 +- src/components/Loader/Loader.module.css | 16 ++++ src/components/Loader/Loader.tsx | 8 ++ src/components/Loader/index.tsx | 1 + .../Web3/components/Form/index.module.css | 13 ++- src/features/Web3/components/Form/index.tsx | 16 ++-- .../components/Input/InputGroup.module.css | 4 +- .../Web3/components/Input/InputGroup.tsx | 9 +- .../Web3/components/Send/Send.module.css | 24 ++++++ src/features/Web3/components/Send/Send.tsx | 83 ++++++++++++------- .../Web3/components/Send/SendTable.module.css | 40 +++++++++ .../Web3/components/Send/SendTable.tsx | 66 +++++++++++++++ .../Web3/components/Send/actions/index.ts | 2 + .../Send/actions/prepareTransaction.ts | 34 ++++++++ .../Send/{ => actions}/sendTransaction.ts | 0 .../components/Send/prepareTransaction.ts | 35 -------- src/features/Web3/components/Send/types.ts | 8 -- src/features/Web3/stores/index.ts | 3 + src/features/Web3/stores/isInitSend.ts | 3 + src/pages/thanks.astro | 58 +++++++++++-- src/styles/_buttons.css | 6 +- src/styles/global.css | 5 +- 23 files changed, 333 insertions(+), 105 deletions(-) create mode 100644 src/components/Loader/Loader.module.css create mode 100644 src/components/Loader/Loader.tsx create mode 100644 src/components/Loader/index.tsx create mode 100644 src/features/Web3/components/Send/Send.module.css create mode 100644 src/features/Web3/components/Send/SendTable.module.css create mode 100644 src/features/Web3/components/Send/SendTable.tsx create mode 100644 src/features/Web3/components/Send/actions/index.ts create mode 100644 src/features/Web3/components/Send/actions/prepareTransaction.ts rename src/features/Web3/components/Send/{ => actions}/sendTransaction.ts (100%) delete mode 100644 src/features/Web3/components/Send/prepareTransaction.ts delete mode 100644 src/features/Web3/components/Send/types.ts create mode 100644 src/features/Web3/stores/index.ts create mode 100644 src/features/Web3/stores/isInitSend.ts diff --git a/src/components/Footer/index.astro b/src/components/Footer/index.astro index ba884977..e7ad26ea 100644 --- a/src/components/Footer/index.astro +++ b/src/components/Footer/index.astro @@ -8,7 +8,7 @@ const year = new Date().getFullYear() const { name, url, github } = config.author --- -