Untitled

mail@pastecode.io avatar
unknown
plain_text
24 days ago
1.2 kB
2
Indexable
Never
const handleTeacherNotiRedirect = (notiType) => {
    let path = ""
    switch (notiType) {
      case "ASSIGN TEACHER TO BOOKING" || "ASSIGN TEACHER TO MULTIPLE DAY BOOKING":
        path = "/TeacherJobList"
        break;
      case "UPDATE TEACHER PERSONAL DETAIL":
        path = "/PersonalDetails"
        break;
      case "UPDATE TEACHER EMERGENCY":
        path = "/EmergencyContact"
        break;
      case "UPDATE TEACHER WORK LOCATION":
        path = "/PreferredWorkLocations"
        break;
      case "UPDATE TEACHER PERSONAL ID":
        path = "/PersonalID"
        break;
      case "UPDATE TEACHER VISA":
        path = "/visa"
        break;
      case "UPDATE TEACHER POLICE CHECK":
        path = "/policecheck"
        break;
      case "UPDATE TEACHER WWCC":
        path = "/wwcc"
        break;
      case "UPDATE BANK DETAIL":
        path = "/BankDetails"
        break;
      case "UPDATE TEACHER TFN":
        path = "/Tax"
        break;
      case "UPDATE TEACHER SUPERANNUATION":
        path = "/Superannuation"
        break;
      case "UPDATE TEACHER QUALIFICATIONS":
        path = "/"
        break;
    }
    if (path) {
      window.location = path
    }
  }
Leave a Comment