From 1fbdb92f0e80ec3f13caa6a3a08d511c994e1570 Mon Sep 17 00:00:00 2001 From: Ashutosh Kumar Date: Sun, 5 Jan 2025 19:08:44 +0530 Subject: [PATCH] Temporarily Disabled Managed Deployment --- src/modules/creator/steps/DeploymentType.tsx | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/modules/creator/steps/DeploymentType.tsx b/src/modules/creator/steps/DeploymentType.tsx index c677b9db..37fce37b 100644 --- a/src/modules/creator/steps/DeploymentType.tsx +++ b/src/modules/creator/steps/DeploymentType.tsx @@ -8,6 +8,7 @@ import { ReactComponent as SelfDeployedIcon } from "assets/img/self-deployed.svg import { ActionTypes, CreatorContext, DeploymentMethod } from "modules/creator/state" import { TitleBlock } from "modules/common/TitleBlock" import { useRouteMatch } from "react-router-dom" +import { useNotification } from "modules/common/hooks/useNotification" const LambdaCustomBox = styled(Grid)(({ theme }) => ({ "height": 480, @@ -62,10 +63,11 @@ export const DeploymentType = (): JSX.Element => { const theme = useTheme() const style = styles() + const notify = useNotification() const isMobileSmall = useMediaQuery(theme.breakpoints.down("xs")) - const [selectedTemplate, setTemplate] = useState("managed") + const [selectedTemplate, setTemplate] = useState("self-deployed") const [error, setError] = useState(false) useEffect(() => { @@ -85,6 +87,13 @@ export const DeploymentType = (): JSX.Element => { }, [dispatch, history, match.path, match.url, selectedTemplate]) const update = (templateValue: DeploymentMethod) => { + if (templateValue === "managed") { + return notify({ + message: "Managed Deployment is temporarily disabled", + autoHideDuration: 3000, + variant: "error" + }) + } setError(false) setTemplate(templateValue) } @@ -119,7 +128,7 @@ export const DeploymentType = (): JSX.Element => { > Managed - + Homebase will deploy a contract on-chain with your parameters using a dedicated endpoint.{" "}