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 GradeCard = () => {
|
||||||
const { register, handleSubmit, setValue } = useForm()
|
const { register, handleSubmit, setValue } = useForm()
|
||||||
const { id } = useParams<{ id: string }>()
|
const { id } = useParams<{ id: string }>()
|
||||||
const [supervisorId] = useLocalStorageState('supervisorId')
|
const [supervisorId] = useLocalStorageState('userId')
|
||||||
|
|
||||||
useQuery(
|
useQuery(
|
||||||
['getGradesFirst'],
|
['getGradesFirst'],
|
||||||
|
@ -16,7 +16,7 @@ const SupervisorSchedule = () => {
|
|||||||
|
|
||||||
const { id } = useParams<{ id: string }>()
|
const { id } = useParams<{ id: string }>()
|
||||||
const [yearGroupId] = useLocalStorageState('yearGroupId')
|
const [yearGroupId] = useLocalStorageState('yearGroupId')
|
||||||
const [supervisorId] = useLocalStorageState('supervisorId')
|
const [supervisorId] = useLocalStorageState('userId')
|
||||||
const [events, setEvents] = useState<
|
const [events, setEvents] = useState<
|
||||||
{
|
{
|
||||||
id: number
|
id: number
|
||||||
|
@ -23,7 +23,7 @@ const ScheduleAddGroup = ({
|
|||||||
const { register, handleSubmit, reset, control } = useForm<{
|
const { register, handleSubmit, reset, control } = useForm<{
|
||||||
student_index: number
|
student_index: number
|
||||||
}>({ mode: 'onBlur' })
|
}>({ mode: 'onBlur' })
|
||||||
const [studentId] = useLocalStorageState('studentId')
|
const [studentId] = useLocalStorageState('userId')
|
||||||
|
|
||||||
const { mutate: mutateAssignGroup } = useMutation(
|
const { mutate: mutateAssignGroup } = useMutation(
|
||||||
['assignGroup'],
|
['assignGroup'],
|
||||||
|
@ -25,7 +25,7 @@ const StudentSchedule = () => {
|
|||||||
Settings.defaultZone = DateTime.local().zoneName
|
Settings.defaultZone = DateTime.local().zoneName
|
||||||
Settings.defaultLocale = 'pl'
|
Settings.defaultLocale = 'pl'
|
||||||
|
|
||||||
const [studentId] = useLocalStorageState('studentId')
|
const [studentId] = useLocalStorageState('userId')
|
||||||
const { id } = useParams<{ id: string }>()
|
const { id } = useParams<{ id: string }>()
|
||||||
const [events, setEvents] = useState<
|
const [events, setEvents] = useState<
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user