# <PlanOfStudy param />
Functional React component for displaying the plan of a student in a table format.
PropTypes:
Name | Type | Required | Description | Default |
---|---|---|---|---|
param |
object | Yes | An object that contains the user's ID to execute the getPlanByStudentID query |
- module:moment
The plan of study in a table format
React.ReactElement
Requires
- module:moment
Methods
# static loader() → {React.ReactElement}
Helper function to display a loading spinner
- module:react-feather.Loader
Returns the loader component
React.ReactElement
Type Definitions
useState
# AssignmentState
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
assignment |
useState.state
|
<optional> |
null | This component state holds all the information regarding the assignments that are part of the student's Plan of Study. The structure of the value that is present after component load comes from the |
setAssignments |
useState.resolver
|
useState
# CourseState
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
courses |
useState.state
|
<optional> |
null | The course state is similar to the |
setCourses |
useState.resolver
|
This function is used to update the value of the courses state. |
useState
# EnrollmentState
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
enrollment |
useState.state
|
<optional> |
null | The enrollment state of the current component. This |
setEnrollment |
useState.resolver
|
This function is used solely to update the value of the enrollment state. |
useState
# LoadingState
Properties:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
loading |
useState.state
|
<optional> |
true | A simple loading state that toggles it's value. Once all data fetching is complete, the value is set to false. Until that is complete, this component will render the |
setLoading |
useState.resolver
|
This function is used extensively in this component to control when the render should change. |