Update ids

This commit is contained in:
adam-skowronek 2022-12-30 21:21:05 +01:00
parent ec5733213e
commit 111f63e395
4 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,7 @@ import styles from './GradeCard.module.css' // Import css modules stylesheet as
const GradeCard = () => {
const { register, handleSubmit, setValue } = useForm()
const { id } = useParams<{ id: string }>()
const [supervisorId] = useLocalStorageState('supervisorId')
const [supervisorId] = useLocalStorageState('userId')
useQuery(
['getGradesFirst'],

View File

@ -16,7 +16,7 @@ const SupervisorSchedule = () => {
const { id } = useParams<{ id: string }>()
const [yearGroupId] = useLocalStorageState('yearGroupId')
const [supervisorId] = useLocalStorageState('supervisorId')
const [supervisorId] = useLocalStorageState('userId')
const [events, setEvents] = useState<
{
id: number

View File

@ -23,7 +23,7 @@ const ScheduleAddGroup = ({
const { register, handleSubmit, reset, control } = useForm<{
student_index: number
}>({ mode: 'onBlur' })
const [studentId] = useLocalStorageState('studentId')
const [studentId] = useLocalStorageState('userId')
const { mutate: mutateAssignGroup } = useMutation(
['assignGroup'],

View File

@ -25,7 +25,7 @@ const StudentSchedule = () => {
Settings.defaultZone = DateTime.local().zoneName
Settings.defaultLocale = 'pl'
const [studentId] = useLocalStorageState('studentId')
const [studentId] = useLocalStorageState('userId')
const { id } = useParams<{ id: string }>()
const [events, setEvents] = useState<
{