diff --git a/apps/deploy-web/src/components/deployments/DeploymentDepositModal.tsx b/apps/deploy-web/src/components/deployments/DeploymentDepositModal.tsx index c44d383bc..bb2377762 100644 --- a/apps/deploy-web/src/components/deployments/DeploymentDepositModal.tsx +++ b/apps/deploy-web/src/components/deployments/DeploymentDepositModal.tsx @@ -193,8 +193,8 @@ export const DeploymentDepositModal: React.FunctionComponent depositData?.balance) { - // setError(`You can't deposit more than you currently have in your balance. Current balance is: ${depositData?.balance} ${depositData?.label}.`); - // return; + setError(`You can't deposit more than you currently have in your balance. Current balance is: ${depositData?.balance} ${depositData?.label}.`); + return; } onDeploymentDeposit(deposit, isManaged ? browserEnvConfig.NEXT_PUBLIC_MASTER_WALLET_ADDRESS : (depositorAddress as string)); @@ -218,6 +218,7 @@ export const DeploymentDepositModal: React.FunctionComponent - - Console is experiencing issues causing balance not being reflected accurately. Other functionality should work as expected. Reach out to the console - team on{" "} - - discord - - , if you experience issues. - + Credit Card payments are now available! + + {!hasManagedWallet && } ); } diff --git a/apps/deploy-web/src/components/layout/Layout.tsx b/apps/deploy-web/src/components/layout/Layout.tsx index 05c5ebc23..098bccb18 100644 --- a/apps/deploy-web/src/components/layout/Layout.tsx +++ b/apps/deploy-web/src/components/layout/Layout.tsx @@ -5,6 +5,7 @@ import { IntlProvider } from "react-intl"; import { ErrorFallback, Spinner } from "@akashnetwork/ui/components"; import { cn } from "@akashnetwork/ui/utils"; import { useMediaQuery, useTheme as useMuiTheme } from "@mui/material"; +import { millisecondsInMinute } from "date-fns/constants"; import { ACCOUNT_BAR_HEIGHT } from "@src/config/ui.config"; import { useSettings } from "@src/context/SettingsProvider"; @@ -55,8 +56,7 @@ const LayoutApp: React.FunctionComponent = ({ children, isLoading, isUsin const { refreshNodeStatuses, isSettingsInit } = useSettings(); const { isWalletLoaded } = useWallet(); const smallScreen = useMediaQuery(muiTheme.breakpoints.down("md")); - // const hasCreditCardBanner = useHasCreditCardBanner(); - const hasCreditCardBanner = true; + const hasCreditCardBanner = useHasCreditCardBanner(); useEffect(() => { const _isNavOpen = localStorage.getItem("isNavOpen"); @@ -67,7 +67,7 @@ const LayoutApp: React.FunctionComponent = ({ children, isLoading, isUsin const refreshNodeIntervalId = setInterval(async () => { await refreshNodeStatuses(); - }, 60_000); // refresh every 1min + }, millisecondsInMinute); return () => { clearInterval(refreshNodeIntervalId); diff --git a/apps/deploy-web/src/hooks/useManagedDeploymentConfirm.tsx b/apps/deploy-web/src/hooks/useManagedDeploymentConfirm.tsx index 10486ba68..366bdca64 100644 --- a/apps/deploy-web/src/hooks/useManagedDeploymentConfirm.tsx +++ b/apps/deploy-web/src/hooks/useManagedDeploymentConfirm.tsx @@ -44,34 +44,34 @@ export const useManagedDeploymentConfirm = () => { title: "Confirm deployment creation?", message: (
- {/*{!hasEnoughForDeposit && (*/} - {/* */} - {/* Insufficient funds*/} - {/* */} - {/*

*/} - {/* You need more than{" "}*/} - {/* {" "}*/} - {/* available to create a deployment.*/} - {/*

*/} - {/*

*/} - {/* Current available balance:{" "}*/} - {/* */} - {/* */} - {/* */} - {/*

*/} - {/*
*/} - {/*
*/} - {/*)}*/} + {!hasEnoughForDeposit && ( + + Insufficient funds + +

+ You need more than{" "} + {" "} + available to create a deployment. +

+

+ Current available balance:{" "} + + + +

+
+
+ )} {services.map(service => { return (