- vue composition api (#91)
* wip * fix Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl>
This commit is contained in:
@@ -65,7 +65,7 @@ const types = [
|
||||
},
|
||||
]
|
||||
|
||||
export function useVacationTypeInfo() {
|
||||
export default function useVacationTypeInfo() {
|
||||
const getTypes = () => types
|
||||
const findType = value => types.find(type => type.value === value)
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
import {computed} from 'vue'
|
||||
import {usePage} from '@inertiajs/inertia-vue3'
|
||||
import { computed } from 'vue'
|
||||
import { usePage } from '@inertiajs/inertia-vue3'
|
||||
|
||||
export default function useCurrentYearPeriodInfo() {
|
||||
const minDate = computed(() => new Date(usePage().props.value.years.current, 0, 1))
|
||||
|
Reference in New Issue
Block a user