-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add class detail page and student invitation to the class
- Loading branch information
1 parent
a042504
commit 9789255
Showing
8 changed files
with
215 additions
and
163 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
'use client'; | ||
|
||
import React, { Dispatch, SetStateAction } from 'react'; | ||
import { InputText } from 'primereact/inputtext'; | ||
import { ProgressSpinner } from 'primereact/progressspinner'; | ||
|
||
interface Props { | ||
email: string; | ||
setEmail: Dispatch<SetStateAction<string>>; | ||
fullName: string; | ||
setFullName: Dispatch<SetStateAction<string>>; | ||
loading: boolean; | ||
} | ||
|
||
export default function CreateInvitationComponent(props: Props) { | ||
return ( | ||
<div className=""> | ||
<div className="field grid"> | ||
<label htmlFor="email" className="col-12 mb-6 md:col-2 md:mb-0"> | ||
</label> | ||
<div className="col-12 md:col-10"> | ||
<InputText id="email" value={props.email} onChange={(e) => props.setEmail(e.target.value)} className="w-full" /> | ||
</div> | ||
</div> | ||
|
||
<div className="field grid"> | ||
<label htmlFor="fullName" className="col-12 mb-6 md:col-2 md:mb-0"> | ||
Full Name | ||
</label> | ||
<div className="col-12 md:col-10"> | ||
<InputText id="fullName" value={props.fullName} onChange={(e) => props.setFullName(e.target.value)} className="w-full" /> | ||
</div> | ||
</div> | ||
|
||
{props.loading && <ProgressSpinner style={{ position: 'absolute', top: '25%', left: '40%' }} />} | ||
</div> | ||
); | ||
} |
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
65 changes: 0 additions & 65 deletions
65
app/(main)/students/invitation/CreateInvitationComponent.tsx
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.