Update ids
This commit is contained in:
parent
ec5733213e
commit
111f63e395
@ -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'],
|
||||
|
@ -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
|
||||
|
@ -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'],
|
||||
|
@ -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<
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user