From c0dcd1b728b3946c080e012d1a36b7bddc4dd568 Mon Sep 17 00:00:00 2001 From: Jamie Harding Date: Fri, 27 Dec 2024 14:51:18 +0100 Subject: [PATCH] cleanup deposit --- .../lib/components/deployment/DepositDropdown.svelte | 9 --------- .../deployment/wizard/DeploymentSteps.svelte | 2 -- .../components/deployment/wizard/DepositButtons.svelte | 10 ++-------- packages/webapp/src/routes/deployment/new/+page.svelte | 2 -- 4 files changed, 2 insertions(+), 21 deletions(-) diff --git a/packages/ui-components/src/lib/components/deployment/DepositDropdown.svelte b/packages/ui-components/src/lib/components/deployment/DepositDropdown.svelte index 72dc2b196..5d04db276 100644 --- a/packages/ui-components/src/lib/components/deployment/DepositDropdown.svelte +++ b/packages/ui-components/src/lib/components/deployment/DepositDropdown.svelte @@ -59,13 +59,4 @@ }} /> {/if} - diff --git a/packages/ui-components/src/lib/components/deployment/wizard/DeploymentSteps.svelte b/packages/ui-components/src/lib/components/deployment/wizard/DeploymentSteps.svelte index 6d24e8a5f..c03ea68c6 100644 --- a/packages/ui-components/src/lib/components/deployment/wizard/DeploymentSteps.svelte +++ b/packages/ui-components/src/lib/components/deployment/wizard/DeploymentSteps.svelte @@ -45,8 +45,6 @@ deploymentStepsStore.populateDeploymentSteps(deploymentSteps); - $: console.log($deploymentStepsStore); - $: currentStep = 0; const nextStep = () => { diff --git a/packages/ui-components/src/lib/components/deployment/wizard/DepositButtons.svelte b/packages/ui-components/src/lib/components/deployment/wizard/DepositButtons.svelte index 59f9b6858..239c115d2 100644 --- a/packages/ui-components/src/lib/components/deployment/wizard/DepositButtons.svelte +++ b/packages/ui-components/src/lib/components/deployment/wizard/DepositButtons.svelte @@ -5,21 +5,15 @@ type TokenInfos } from '@rainlanguage/orderbook/js_api'; import { Input, Button } from 'flowbite-svelte'; - import type { StepType } from '../../../types/wizardSteps'; export let deposit: GuiDeposit; export let gui: DotrainOrderGui; export let tokenInfos: TokenInfos; - export let type: StepType; - let showCustomInput = false; - - $: console.log('deposit', deposit); + let showCustomInput = !gui?.isDepositPreset(deposit.token_name); function handlePresetClick(preset: string) { - console.log('PRESET CLICK'); gui?.saveDeposit(deposit.token_name, preset); - console.log(gui?.getDeposits()); showCustomInput = false; gui = gui; } @@ -65,7 +59,7 @@ {/if} - {#if !gui?.isDepositPreset(deposit.token_name)} + {#if showCustomInput}