From e7cdd6c13db15af55f7e9fb398282e48c9d2b8d2 Mon Sep 17 00:00:00 2001 From: Sean Yesmunt Date: Mon, 1 Jun 2020 13:03:19 -0400 Subject: [PATCH] moonpay --- package.json | 1 + ui/component/common/icon-custom.jsx | 21 ++- ui/component/page/view.jsx | 5 +- ui/component/router/view.jsx | 2 + ui/component/userPasswordSet/view.jsx | 2 +- ui/component/walletBalance/index.js | 18 +-- ui/component/walletBalance/view.jsx | 154 ++++++++++++---------- ui/constants/icons.js | 4 +- ui/constants/moonpay.js | 62 +++++++++ ui/constants/pages.js | 1 + ui/modal/modalRouter/view.jsx | 6 +- ui/page/buy/index.js | 16 +++ ui/page/buy/view.jsx | 161 +++++++++++++++++++++++ ui/page/rewards/view.jsx | 9 +- ui/page/wallet/index.js | 15 ++- ui/page/wallet/view.jsx | 52 +++++++- ui/page/welcome/view.jsx | 2 +- ui/scss/component/_ads.scss | 4 +- ui/scss/component/_button.scss | 16 +-- ui/scss/component/_card.scss | 64 ++++----- ui/scss/component/_channel.scss | 50 +++---- ui/scss/component/_claim-list.scss | 81 +++++++----- ui/scss/component/_claim-search.scss | 14 +- ui/scss/component/_comments.scss | 24 ++-- ui/scss/component/_content.scss | 14 +- ui/scss/component/_expandable.scss | 2 +- ui/scss/component/_file-drop.scss | 6 +- ui/scss/component/_file-list.scss | 2 +- ui/scss/component/_file-properties.scss | 10 +- ui/scss/component/_file-render.scss | 36 ++--- ui/scss/component/_footer.scss | 10 +- ui/scss/component/_form-field.scss | 20 +-- ui/scss/component/_form-row.scss | 10 +- ui/scss/component/_header.scss | 24 ++-- ui/scss/component/_icon.scss | 4 +- ui/scss/component/_item-list.scss | 12 +- ui/scss/component/_main.scss | 31 ++++- ui/scss/component/_markdown-editor.scss | 2 +- ui/scss/component/_markdown-preview.scss | 28 ++-- ui/scss/component/_media.scss | 13 +- ui/scss/component/_modal.scss | 12 +- ui/scss/component/_navigation.scss | 10 +- ui/scss/component/_pagination.scss | 4 +- ui/scss/component/_placeholder.scss | 2 +- ui/scss/component/_purchase.scss | 44 +++---- ui/scss/component/_search.scss | 12 +- ui/scss/component/_snack-bar.scss | 6 +- ui/scss/component/_spinner.scss | 2 +- ui/scss/component/_splash.scss | 6 +- ui/scss/component/_table.scss | 4 +- ui/scss/component/_tags.scss | 14 +- ui/scss/component/_wunderbar.scss | 10 +- ui/scss/component/_yrbl.scss | 4 +- ui/scss/component/expanding-details.scss | 4 +- ui/scss/component/menu-button.scss | 10 +- ui/scss/component/nag.scss | 12 +- ui/scss/component/section.scss | 40 +++--- ui/scss/component/tabs.scss | 14 +- ui/scss/init/_gui.scss | 28 ++-- ui/scss/init/_vars.scss | 11 +- web/component/footer.jsx | 1 + webpack.base.config.js | 1 + yarn.lock | 5 + 63 files changed, 809 insertions(+), 455 deletions(-) create mode 100644 ui/constants/moonpay.js create mode 100644 ui/page/buy/index.js create mode 100644 ui/page/buy/view.jsx diff --git a/package.json b/package.json index 12bcdfedd..a8489622b 100644 --- a/package.json +++ b/package.json @@ -94,6 +94,7 @@ "copy-webpack-plugin": "^4.6.0", "country-data": "^0.0.31", "cross-env": "^5.2.0", + "crypto-js": "^4.0.0", "css-doodle": "^0.7.1", "css-loader": "^2.1.0", "cssnano": "^4.1.10", diff --git a/ui/component/common/icon-custom.jsx b/ui/component/common/icon-custom.jsx index a1da0dc19..e16c57221 100644 --- a/ui/component/common/icon-custom.jsx +++ b/ui/component/common/icon-custom.jsx @@ -638,7 +638,26 @@ export const icons = { - {' '} + + + ), + [ICONS.BUY]: buildIcon( + + + + + + ), + [ICONS.SEND]: buildIcon( + + + + + ), + [ICONS.RECEIVE]: buildIcon( + + + ), }; diff --git a/ui/component/page/view.jsx b/ui/component/page/view.jsx index 998ded845..a887bb5f2 100644 --- a/ui/component/page/view.jsx +++ b/ui/component/page/view.jsx @@ -15,17 +15,18 @@ type Props = { authPage: boolean, noHeader: boolean, noFooter: boolean, + noSideNavigation: boolean, }; function Page(props: Props) { - const { children, className, authPage = false, noHeader, noFooter } = props; + const { children, className, authPage = false, noHeader = false, noFooter = false, noSideNavigation = false } = props; return ( {!noHeader &&
}
{children}
- {!authPage && !noHeader && } + {!authPage && !noSideNavigation && }
{/* @if TARGET='web' */} {!noFooter &&