- vue composition api (#91)

* wip

* fix

Co-authored-by: EwelinaLasowy <ewelina.lasowy@blumilk.pl>
This commit is contained in:
Adrian Hopek
2022-03-22 15:03:42 +01:00
committed by GitHub
parent 95f5ed44d6
commit dcda8c6255
33 changed files with 938 additions and 1466 deletions

View File

@@ -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)

View File

@@ -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))