This commit is contained in:
Adrian Hopek
2022-03-14 14:20:36 +01:00
parent 91980163e0
commit 1843451f3f
9 changed files with 43 additions and 37 deletions

View File

@@ -125,7 +125,7 @@ const statuses = [
export function useStatusInfo() {
const getStatues = () => statuses
const findStatus = value => statuses.find(month => month.value === value)
const findStatus = value => statuses.find(status => status.value === value)
return {
getStatues,

View File

@@ -8,7 +8,7 @@ import HandHeartOutlineIcon from 'vue-material-design-icons/HandHeartOutline.vue
import CalendarCheckIcon from 'vue-material-design-icons/CalendarCheck.vue'
import MedicalBagIcon from 'vue-material-design-icons/MedicalBag.vue'
const statuses = [
const types = [
{
text: 'Urlop wypoczynkowy',
value: 'vacation',
@@ -129,11 +129,11 @@ const statuses = [
]
export function useVacationTypeInfo() {
const getStatues = () => statuses
const findStatus = value => statuses.find(month => month.value === value)
const getTypes = () => types
const findType = value => types.find(type => type.value === value)
return {
getStatues,
findStatus,
getTypes,
findType,
}
}