-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* export results and args * new js package * add icon * table components * quick save * extract id from body * school name field * ready for review * only teachers * fix rendering issue and create placeholder tabs * merge from dev * working order * create sub view for leaving school * merge from dev * fix imports
- Loading branch information
Showing
14 changed files
with
572 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { type FC } from "react" | ||
|
||
export interface ClassProps {} | ||
|
||
const Class: FC<ClassProps> = () => { | ||
return <>Class</> | ||
} | ||
|
||
export default Class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,24 @@ | ||
import { type FC } from "react" | ||
import { type SchoolTeacherUser } from "codeforlife/api" | ||
|
||
import Class from "./Class" | ||
import JoinClassRequest from "./JoinClassRequest" | ||
import { type RetrieveUserResult } from "../../../api/user" | ||
|
||
export interface ClassesProps { | ||
authUser: SchoolTeacherUser<RetrieveUserResult> | ||
view?: "class" | "join-class-request" | ||
} | ||
|
||
const Classes: FC<ClassesProps> = ({ authUser }) => { | ||
return <>TODO</> | ||
const Classes: FC<ClassesProps> = ({ authUser, view }) => { | ||
if (view) { | ||
return { | ||
class: <Class />, | ||
"join-class-request": <JoinClassRequest />, | ||
}[view] | ||
} | ||
|
||
return <>Classes</> | ||
} | ||
|
||
export default Classes |
Oops, something went wrong.