From e4e6c32d64c24dfda63326ef85f1b9407637cc18 Mon Sep 17 00:00:00 2001 From: enzoggqs Date: Tue, 28 Feb 2023 21:07:56 -0300 Subject: [PATCH] Add alert to withdraw flow --- src/components/CustomAlert/CustomAlert.vue | 25 ++++--------------- .../ListingComponent/ListingComponent.vue | 15 +++-------- src/views/ManageBidsView.vue | 8 ++++++ 3 files changed, 17 insertions(+), 31 deletions(-) diff --git a/src/components/CustomAlert/CustomAlert.vue b/src/components/CustomAlert/CustomAlert.vue index 6e85eee..b49e4ec 100644 --- a/src/components/CustomAlert/CustomAlert.vue +++ b/src/components/CustomAlert/CustomAlert.vue @@ -6,15 +6,15 @@ const props = defineProps<{ const alertText = ref(""); const alertPaddingLeft = ref("18rem"); -const alertPaddingTop = ref("0rem"); if (props.type === "sell") { alertPaddingLeft.value = "30%"; } else if (props.type === "buy") { alertPaddingLeft.value = "30%"; +} else if (props.type === "withdraw") { + alertPaddingLeft.value = "40%"; } else if (props.type === "redirect") { alertPaddingLeft.value = "35%"; - alertPaddingTop.value = "8rem"; } switch (props.type) { @@ -29,6 +29,9 @@ switch (props.type) { case "redirect": alertText.value = "Existe uma compra em aberto. Continuar?"; break; + case "withdraw": + alertText.value = "Tudo certo! Saque realizado com sucesso!"; + break; }