From 81bef69e5d960613b00ddf4ce7060fa535c8e867 Mon Sep 17 00:00:00 2001 From: Maxime Beauchamp <15185355+baktun14@users.noreply.github.com> Date: Wed, 4 Dec 2024 12:40:23 -0500 Subject: [PATCH 01/26] features/credit card banner (#514) --- apps/deploy-web/package.json | 1 + .../components/layout/CreditCardBanner.tsx | 14 +++ .../src/components/layout/Layout.tsx | 87 ++++++++----------- apps/deploy-web/src/components/layout/Nav.tsx | 7 +- .../src/components/layout/Sidebar.tsx | 16 ++-- .../src/components/layout/WelcomeModal.tsx | 63 -------------- .../wallet/ConnectManagedWalletButton.tsx | 10 ++- .../src/hooks/useHasCreditCardBanner.ts | 32 +++++++ .../src/pages/new-deployment/index.tsx | 19 +++- package-lock.json | 3 +- packages/ui/components/button.tsx | 2 +- 11 files changed, 127 insertions(+), 127 deletions(-) create mode 100644 apps/deploy-web/src/components/layout/CreditCardBanner.tsx delete mode 100644 apps/deploy-web/src/components/layout/WelcomeModal.tsx create mode 100644 apps/deploy-web/src/hooks/useHasCreditCardBanner.ts diff --git a/apps/deploy-web/package.json b/apps/deploy-web/package.json index 3784e04d9..9b6b271af 100644 --- a/apps/deploy-web/package.json +++ b/apps/deploy-web/package.json @@ -21,6 +21,7 @@ "@akashnetwork/akashjs": "^0.10.0", "@akashnetwork/env-loader": "*", "@akashnetwork/http-sdk": "*", + "@akashnetwork/logging": "*", "@akashnetwork/network-store": "*", "@akashnetwork/ui": "*", "@auth0/nextjs-auth0": "^3.5.0", diff --git a/apps/deploy-web/src/components/layout/CreditCardBanner.tsx b/apps/deploy-web/src/components/layout/CreditCardBanner.tsx new file mode 100644 index 000000000..4492a0023 --- /dev/null +++ b/apps/deploy-web/src/components/layout/CreditCardBanner.tsx @@ -0,0 +1,14 @@ +import { useWallet } from "@src/context/WalletProvider/WalletProvider"; +import { ConnectManagedWalletButton } from "../wallet/ConnectManagedWalletButton"; + +export function CreditCardBanner() { + const { hasManagedWallet } = useWallet(); + + return ( +
Thank you for choosing Akash Console!
-- We hope you enjoy using our platform and look forward to continuing to provide you with excellent service. We are excited to have you as a user and - look forward to helping you build your business. -
-
- Our app is currently in the BETA stage, which means that we are still in the process of testing and improving it. To ensure a safe and enjoyable
- experience, we recommend that you create a new wallet and start with a small amount of AKT/USDC.
-
-
- Please note that while we are doing our best to make sure the app is safe and functional, there may be some bugs and issues that we haven't
- discovered yet. As with any BETA product, use at your own discretion.
-
-
- We appreciate your understanding and support as we work to make Akash Console even better. If you encounter any problems or have suggestions for
- improvement, please don't hesitate to reach out to us. We're here to help!
-