refactor Validation to be LoadingComponent and receive props to be reusable

This commit is contained in:
RcleydsonR
2022-12-13 18:26:00 -03:00
parent d97093462b
commit 409f22a8cf
5 changed files with 88 additions and 61 deletions

View File

@@ -1,10 +1,17 @@
<script setup lang="ts"></script>
<script setup lang="ts">
// prop
const props = defineProps({
title: String,
message: String,
});
</script>
<template>
<div class="page">
<div class="text-container">
<span class="text font-bold text-3xl max-w-[29rem]"
>Confirme em sua carteira</span
>
<span class="text font-bold text-3xl max-w-[29rem]">{{
props.title ? props.title : "Confirme em sua carteira"
}}</span>
</div>
<div class="blur-container w-[26rem]">
<div
@@ -20,7 +27,7 @@
height="48"
/>
<span class="text-black font-medium text-sm px-12 mt-4">
A transação está sendo enviada para a rede
{{ $props.message }}
</span>
</div>
</div>

View File

@@ -52,6 +52,7 @@ const decimalCount = (num: Number) => {
}
return 0;
};
// Verify if there is a valid deposit to buy
const verifyLiquidity = () => {
enableSelectButton.value = false;