Skip to content

Commit

Permalink
fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
SKairinos committed Jul 15, 2024
1 parent aa88394 commit bfbfed1
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/pages/emailVerification/EmailVerification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const EmailVerification: FC<EmailVerificationProps> = () => {
})

useEffect(() => {
if (!params) navigate(paths.error.pageNotFound._)
if (!params) navigate(paths.error.type.pageNotFound._)
}, [params, navigate])

if (!params) return <></>
Expand Down
5 changes: 1 addition & 4 deletions src/pages/login/IndyForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,7 @@ const IndyForm: FC<IndyFormProps> = () => {
</Typography>
<Typography variant="body2">
Don&apos;t worry, you can&nbsp;
<Link to={paths.resetPassword.independent._}>
reset your password
</Link>
.
<Link to={paths.resetPassword.indy._}>reset your password</Link>.
</Typography>
</Stack>
<Stack direction="row">
Expand Down
2 changes: 1 addition & 1 deletion src/pages/login/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const Login: FC<LoginProps> = ({ form }) => {
} else {
navigate(
{
teacher: paths.teacher.dashboard.school._,
teacher: paths.teacher.dashboard.tab.school._,
student: paths.student.dashboard._,
indy: paths.indy.dashboard._,
}[sessionMetadata.user_type],
Expand Down
2 changes: 1 addition & 1 deletion src/pages/login/studentForms/Class.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const Class: FC<ClassProps> = () => {
name="classId"
label="Class code"
placeholder="Enter your class code"
schema={classIdSchema}
schema={classIdSchema()}
required
/>
<Typography variant="body2" fontWeight="bold">
Expand Down

0 comments on commit bfbfed1

Please sign in to comment.