emit selectedDeposit and token value to Home component when confirm button is clicked

This commit is contained in:
RcleydsonR
2022-11-26 14:25:19 -03:00
parent 246f572550
commit f8e5b78cf0
2 changed files with 13 additions and 11 deletions

View File

@@ -1,14 +1,16 @@
<script setup lang="ts">
import SearchComponent from "../components/SearchComponent.vue";
const confirmBuyClick = () => {
const confirmBuyClick = ({ selectedDeposit, tokenValue }: any) => {
// finish buy screen
console.log(selectedDeposit);
console.log(tokenValue);
console.log("compra confirmada");
};
</script>
<template>
<SearchComponent @token-buy="confirmBuyClick()" />
<SearchComponent @token-buy="confirmBuyClick" />
</template>
<style scoped></style>