Installed zod, because I somehow didin't have to do that locally
Some checks failed
Build Backend and Frontend / Build & Test .NET Backend (push) Successful in 41s
Build Backend and Frontend / Build Frontend (push) Failing after 10s

- Also use v4
This commit is contained in:
Simon Lübeß
2025-05-23 16:04:53 +02:00
parent a2608eac5b
commit ae5096bacd
4 changed files with 27 additions and 2 deletions

20
package-lock.json generated Normal file
View File

@ -0,0 +1,20 @@
{
"name": "USEntryCoach",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"dependencies": {
"zod": "^3.25.23"
}
},
"node_modules/zod": {
"version": "3.25.23",
"resolved": "https://registry.npmjs.org/zod/-/zod-3.25.23.tgz",
"integrity": "sha512-Od2bdMosahjSrSgJtakrwjMDb1zM1A3VIHCPGveZt/3/wlrTWBya2lmEh2OYe4OIu8mPTmmr0gnLHIWQXdtWBg==",
"funding": {
"url": "https://github.com/sponsors/colinhacks"
}
}
}
}

5
package.json Normal file
View File

@ -0,0 +1,5 @@
{
"dependencies": {
"zod": "^3.25.23"
}
}

View File

@ -1,6 +1,6 @@
import {useState, useRef, useEffect} from 'react'; import {useState, useRef, useEffect} from 'react';
import useLoginToken from "../Hooks/useLoginToken.tsx"; import useLoginToken from "../Hooks/useLoginToken.tsx";
import { z } from 'zod'; import { z } from 'zod/v4';
function SessionActive({stopSession} : {stopSession: () => void}) function SessionActive({stopSession} : {stopSession: () => void})
{ {

View File

@ -1,5 +1,5 @@
import { useState, type FormEvent } from 'react'; import { useState, type FormEvent } from 'react';
import { z } from 'zod'; import { z } from 'zod/v4';
export default function Login({ setToken } : {setToken: (token: string) => void}) export default function Login({ setToken } : {setToken: (token: string) => void})
{ {