minor changes / cleanup

This commit is contained in:
skidoodle 2023-12-12 00:11:24 +01:00
parent f1de0d54ac
commit 6275b083db
10 changed files with 2301 additions and 5912 deletions

View file

@ -1,14 +0,0 @@
import { useEffect } from 'react'
export function useYears(
setYears: React.Dispatch<React.SetStateAction<string[]>>
) {
useEffect(() => {
const currentYear = new Date().getFullYear()
const availableYears: string[] = []
for (let year = currentYear; year >= 2013; year--) {
availableYears.push(year.toString())
}
setYears(availableYears)
}, [setYears])
}