fixes
This commit is contained in:
22
src/stores/drawerStore.ts
Normal file
22
src/stores/drawerStore.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import {defineStore} from "pinia";
|
||||
import {ref} from "vue";
|
||||
|
||||
export const useDrawerStore = defineStore('drawer', () => {
|
||||
const visible = ref(false);
|
||||
const transactionType = ref(null)
|
||||
const categoryType = ref(null)
|
||||
|
||||
const setVisible = (isVisible: boolean) => {
|
||||
visible.value = isVisible;
|
||||
}
|
||||
|
||||
const setTransactionType = (type: string) => {
|
||||
transactionType.value = type;
|
||||
}
|
||||
|
||||
const setCategoryType = (type: string) => {
|
||||
categoryType.value = type;
|
||||
}
|
||||
return {visible, transactionType, categoryType, setTransactionType, setCategoryType, setVisible}
|
||||
|
||||
})
|
||||
Reference in New Issue
Block a user