From fd218cc82ef8d63ebe153dc07031c11073eb079f Mon Sep 17 00:00:00 2001 From: Sam Date: Wed, 6 Dec 2023 13:51:57 +0200 Subject: [PATCH 01/18] Add transfer page --- src/components/main/Main.module.sass | 10 +- src/components/main/TransferPage.tsx | 36 +++++ src/components/transfer/SuccessContent.tsx | 100 ++++++++++++++ .../transfer/TokenSelector.module.sass | 23 ++++ src/components/transfer/TransferForm.tsx | 2 +- src/components/transfer/TransferModal.tsx | 88 +----------- .../transfer/TransferPageLayout.tsx | 125 ++++++++++++++++++ src/pages/send/[transferType].tsx | 19 +++ 8 files changed, 314 insertions(+), 89 deletions(-) create mode 100644 src/components/main/TransferPage.tsx create mode 100644 src/components/transfer/SuccessContent.tsx create mode 100644 src/components/transfer/TransferPageLayout.tsx create mode 100644 src/pages/send/[transferType].tsx diff --git a/src/components/main/Main.module.sass b/src/components/main/Main.module.sass index 1e42a00d..a4070f39 100644 --- a/src/components/main/Main.module.sass +++ b/src/components/main/Main.module.sass @@ -4,6 +4,14 @@ \:global .DfSectionOuter max-width: calc(1088px + #{$space_normal} * 2) !important +.TransferPage + \:global .DfSectionOuter + max-width: 632px !important + height: 100% + + \:global .DfSection + height: 100% + .WarningMessage display: flex background: #fff @@ -27,4 +35,4 @@ @media (max-width: 767px) .CreatorStakingSection \:global .DfSection - margin-top: 0 !important \ No newline at end of file + margin-top: 0 !important diff --git a/src/components/main/TransferPage.tsx b/src/components/main/TransferPage.tsx new file mode 100644 index 00000000..695d1f2a --- /dev/null +++ b/src/components/main/TransferPage.tsx @@ -0,0 +1,36 @@ +import React from 'react' +import { NextPage } from 'next' +import TransferPageLayout from '../transfer/TransferPageLayout' +import { PageContent } from '../utils/PageWrapper' +import clsx from 'clsx' +import Footer from '../footer/Footer' +import styles from './Main.module.sass' + +type TransferPageProps = { + transferType?: string + asset?: string +} + +const TransferPage: NextPage = (props) => { + const { transferType, asset } = props + + console.log(asset) + + return ( + <> +
+ + + +
+