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

@@ -15,8 +15,10 @@ enum Step {
List,
}
// States
const etherStore = useEtherStore();
etherStore.setSellerView(false);
// States
const { loadingLock, walletAddress, locksAddedList } = storeToRefs(etherStore);
const flowStep = ref<Step>(Step.Search);
const pixTarget = ref<string>("");

View File

@@ -5,6 +5,7 @@ import ValidationComponent from "../components/LoadingComponent.vue";
import blockchain from "../utils/blockchain";
import { ref } from "vue";
import { useEtherStore } from "@/store/ether";
enum Step {
Search,
@@ -12,6 +13,9 @@ enum Step {
Network,
}
const etherStore = useEtherStore();
etherStore.setSellerView(true);
const flowStep = ref<Step>(Step.Sell);
const loading = ref<boolean>(false);