Refactor form components and remove totalDuration store

This commit is contained in:
Dede Fuji Abdul
2024-02-29 13:56:43 +07:00
parent 567ea660c8
commit f913c5f471
3 changed files with 34 additions and 76 deletions

View File

@ -1,25 +0,0 @@
import { ref } from 'vue'
import { defineStore } from 'pinia'
export const useTotalDuration = defineStore('totalDuration', () => {
const totalMin = ref("1 Menit")
const totalMax = ref("5 Menit")
const setDataMin = (value: any) => {
totalMin.value = value
}
const getDataMin = () => {
return totalMin.value
}
const setDataMax = (value: any) => {
totalMax.value = value
}
const getDataMax = () => {
return totalMax.value
}
return {
setDataMin,
getDataMin,
setDataMax,
getDataMax,
}
})