From 9f193ed18c2d83ffac7d0a91f8e7860f126a7b72 Mon Sep 17 00:00:00 2001 From: DR497 <47689875+dr497@users.noreply.github.com> Date: Mon, 29 Jan 2024 14:18:19 +0800 Subject: [PATCH] feat: default to 0 storage --- src/components/DomainSizeModal.tsx | 3 ++- src/screens/Cart/index.tsx | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/DomainSizeModal.tsx b/src/components/DomainSizeModal.tsx index 3ebebb9..1aecb6d 100644 --- a/src/components/DomainSizeModal.tsx +++ b/src/components/DomainSizeModal.tsx @@ -7,6 +7,7 @@ import { useStorageMap } from "@src/hooks/useStorageMap"; import { WrapModal } from "./WrapModal"; const LIST = [ + { label: "0kb", value: 0 }, { label: "1kb", value: 1_000 }, { label: "2kb", value: 2_000 }, { label: "3kb", value: 3_000 }, @@ -29,7 +30,7 @@ export const DomainSizeModal = ({ useEffect(() => { if (!map.get(domain)) { - actions.set(domain, 1_000); + actions.set(domain, 0); } }, []); diff --git a/src/screens/Cart/index.tsx b/src/screens/Cart/index.tsx index a93958b..e448f69 100644 --- a/src/screens/Cart/index.tsx +++ b/src/screens/Cart/index.tsx @@ -71,7 +71,7 @@ const checkEnoughFunds = async ( return balances > total; }; -const DEFAULT_SPACE = 1_000; +const DEFAULT_SPACE = 0; type CurrentStep = 1 | 2 | 3;