summaryrefslogtreecommitdiff
path: root/src/screens/professor/Classroom/GradesTab/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/screens/professor/Classroom/GradesTab/index.js')
-rw-r--r--src/screens/professor/Classroom/GradesTab/index.js34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/screens/professor/Classroom/GradesTab/index.js b/src/screens/professor/Classroom/GradesTab/index.js
new file mode 100644
index 0000000..785bd50
--- /dev/null
+++ b/src/screens/professor/Classroom/GradesTab/index.js
@@ -0,0 +1,34 @@
+function GradesTab({ gradesTabData, layoutType }) {
+ const layoutResolver = (state, grades, layoutType) => {
+ if (layoutType === 'desktop') {
+ switch (state) {
+ case 'loading':
+ return <h1>Loading...</h1>;
+ case 'idle':
+ return <h1>Grades Tab</h1>;
+ case 'gone':
+ return null;
+ default:
+ return null;
+ }
+ } else if (layoutType === 'mobile') {
+ switch (state) {
+ case 'loading':
+ return <h1>Loading...</h1>;
+ case 'idle':
+ return <h1>Grades Tab</h1>;
+ case 'gone':
+ return null;
+ default:
+ return null;
+ }
+ }
+ };
+ return layoutResolver(
+ gradesTabData && gradesTabData.state,
+ gradesTabData && gradesTabData.grades,
+ layoutType
+ );
+}
+
+export default GradesTab;