add state to verify if is seller view and toggle want to buy or sell button on top bar

This commit is contained in:
RcleydsonR
2023-01-02 19:11:43 -03:00
parent 401abbb1f9
commit 163146a7f5
4 changed files with 16 additions and 11 deletions

View File

@@ -5,6 +5,7 @@ export const useEtherStore = defineStore("ether", {
walletAddress: "",
balance: "",
loadingLock: false,
sellerView: false,
// Depósitos válidos para compra
depositsValidList: [] as any[],
// Depósitos adicionados na blockchain
@@ -28,6 +29,9 @@ export const useEtherStore = defineStore("ether", {
setLoadingLock(isLoadingLock: boolean) {
this.loadingLock = isLoadingLock;
},
setSellerView(sellerView: boolean) {
this.sellerView = sellerView;
},
setDepositsValidList(depositsValidList: any[]) {
this.depositsValidList = depositsValidList;
},