Changed name of new component and minor fix

This commit is contained in:
Mattias 2024-03-18 15:17:53 +01:00
parent 3106e0f445
commit 1893340c63
2 changed files with 5 additions and 2 deletions

View file

@ -90,6 +90,9 @@ export default function GetWeeklyReport(): JSX.Element {
className="w-fill h-[5vh] font-sans text-[3vh] pl-[1vw] rounded-full text-center pt-[1vh] pb-[1vh] border-2 border-black"
type="week"
placeholder="Week"
value={
week === 0 ? "" : `2024-W${week.toString().padStart(2, "0")}`
}
onChange={(e) => {
const weekNumber = parseInt(e.target.value.split("-W")[1]);
setWeek(weekNumber);