diff --git a/src/pages/studentJoinClass/RequestPending.tsx b/src/pages/studentJoinClass/RequestPending.tsx index 7946013..e501049 100644 --- a/src/pages/studentJoinClass/RequestPending.tsx +++ b/src/pages/studentJoinClass/RequestPending.tsx @@ -19,63 +19,61 @@ const RequestPending: FC = ({ user }) => { return handleResultState( useRetrieveSchoolQuery(user.requesting_to_join_class!.school), - school => { - return ( - <> - Request pending - - Your request to join class {user.requesting_to_join_class!.id} in - the school or club {school.name} is still pending. - - - The teacher for that class must review and approve the request to - complete the process. - - - If successful, the teacher will then contact you with your new login - details. - - - Warning: once the teacher accepts you to their - class, that teacher and the school or club will manage your account. - - - You may cancel your request now, before the teacher makes their - decision. - - - - Back - - - - - ) - }, + }) + }} + > + Cancel request + + + + ), ) } diff --git a/src/pages/studentJoinClass/StudentJoinClass.tsx b/src/pages/studentJoinClass/StudentJoinClass.tsx index 38ebcf1..341994c 100644 --- a/src/pages/studentJoinClass/StudentJoinClass.tsx +++ b/src/pages/studentJoinClass/StudentJoinClass.tsx @@ -40,7 +40,12 @@ const _StudentJoinClass: FC = ({ user_id }) => { If successful, the teacher will contact you with your new login details. - + )}