CLASSROOMIO-T-126: Invite teacher and teacher can login

This commit is contained in:
Rotimi Best
2023-09-01 15:28:47 +01:00
parent 9d0fd56f05
commit 929edea63c
29 changed files with 498 additions and 74 deletions
@@ -0,0 +1,8 @@
import { ROUTES_TO_HIDE_NAV } from '$lib/utils/constants/routes';
export default (route: string): boolean => {
return ROUTES_TO_HIDE_NAV.some((publicRoute) => {
const regex = new RegExp(publicRoute, 'g');
return regex.test(route);
});
};
+1 -1
View File
@@ -96,7 +96,7 @@ const onboardingValidationSchema = {
export const getConfirmPasswordError = ({ password, confirmPassword }) => {
return password > 6 && confirmPassword > 6 && password !== confirmPassword
? 'Does not match password'
: null;
: undefined;
};
export const processErrors = (error, mapToId) => {