feat: adding steps to home view to change from search to buy component

This commit is contained in:
RcleydsonR
2022-12-05 12:54:33 -03:00
parent fb7d648308
commit 5e01b38e1a
4 changed files with 39 additions and 15 deletions

View File

@@ -4,14 +4,15 @@ export const useEtherStore = defineStore("ether", {
state: () => ({
walletAddress: "",
balance: "",
loadingLock: false,
// Depósitos válidos para compra
depositsValidList: [{}],
depositsValidList: [] as any[],
// Depósitos adicionados na blockchain
depositsAddedList: [{}],
depositsAddedList: [] as any[],
// Depósitos expirados na blockchain
depositsExpiredList: [{}],
depositsExpiredList: [] as any[],
// Locks adicionados na blockchain
locksAddedList: [{}],
locksAddedList: [] as any[],
}),
actions: {
setWalletAddress(walletAddress: string) {
@@ -20,6 +21,9 @@ export const useEtherStore = defineStore("ether", {
setBalance(balance: string) {
this.balance = balance;
},
setLoadingLock(isLoadingLock: boolean) {
this.loadingLock = isLoadingLock;
},
setDepositsValidList(depositsValidList: any[]) {
this.depositsValidList = depositsValidList;
},