fixing lint warnings
This commit is contained in:
parent
a216474453
commit
94d2390b14
@ -2,27 +2,16 @@
|
|||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import CustomButton from "../../components/CustomButton.vue";
|
import CustomButton from "../../components/CustomButton.vue";
|
||||||
import { debounce } from "@/utils/debounce";
|
import { debounce } from "@/utils/debounce";
|
||||||
import { useEtherStore } from "@/store/ether";
|
|
||||||
import { storeToRefs } from "pinia";
|
|
||||||
|
|
||||||
// Store reference
|
|
||||||
const etherStore = useEtherStore();
|
|
||||||
|
|
||||||
const { walletAddress, depositsAddedList } = storeToRefs(etherStore);
|
|
||||||
|
|
||||||
// Reactive state
|
// Reactive state
|
||||||
const tokenValue = ref(0);
|
const tokenValue = ref(0);
|
||||||
const enableSelectButton = ref(false);
|
const enableSelectButton = ref(false);
|
||||||
const hasLiquidity = ref(true);
|
const hasLiquidity = ref(true);
|
||||||
const validDecimals = ref(true);
|
const validDecimals = ref(true);
|
||||||
const selectedDeposit = ref();
|
|
||||||
|
|
||||||
// Emits
|
// Emits
|
||||||
const emit = defineEmits(["tokenBuy"]);
|
const emit = defineEmits(["tokenBuy"]);
|
||||||
|
|
||||||
// Blockchain methods
|
|
||||||
const connectAccount = async () => {};
|
|
||||||
|
|
||||||
// Debounce methods
|
// Debounce methods
|
||||||
const handleInputEvent = (event: any) => {
|
const handleInputEvent = (event: any) => {
|
||||||
const { value } = event.target;
|
const { value } = event.target;
|
||||||
|
@ -5,8 +5,6 @@ import ValidationComponent from "../components/LoadingComponent.vue";
|
|||||||
import blockchain from "../utils/blockchain";
|
import blockchain from "../utils/blockchain";
|
||||||
|
|
||||||
import { ref } from "vue";
|
import { ref } from "vue";
|
||||||
import router from "@/router";
|
|
||||||
import { pix } from "@/utils/QrCodePix";
|
|
||||||
|
|
||||||
enum Step {
|
enum Step {
|
||||||
Search,
|
Search,
|
||||||
@ -20,10 +18,6 @@ const loading = ref<boolean>(false);
|
|||||||
const offerValue = ref<number>();
|
const offerValue = ref<number>();
|
||||||
const pixKeyBuyer = ref<string>("");
|
const pixKeyBuyer = ref<string>("");
|
||||||
|
|
||||||
const walletConnect = async () => {
|
|
||||||
flowStep.value = Step.Sell;
|
|
||||||
};
|
|
||||||
|
|
||||||
// Verificar tipagem
|
// Verificar tipagem
|
||||||
const approveOffer = async ({ offer, pixKey }: any) => {
|
const approveOffer = async ({ offer, pixKey }: any) => {
|
||||||
loading.value = true;
|
loading.value = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user