emit selectedDeposit and token value to Home component when confirm button is clicked
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user