Skip to content

Commit 553a704

Browse files
Remove commented-out code
1 parent 8b0e649 commit 553a704

File tree

2 files changed

+1
-33
lines changed

2 files changed

+1
-33
lines changed

src/Screens/ClassMastery/ClassMastery.tsx

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import { color } from '../../Components/constants.json';
44

55
import StudentMasteryRow, { StudentMasteryHeader } from './StudentMasteryRow/StudentMasteryRow';
66

7-
/* import { useGetTaskByIdQuery } from '../../__generated__/types'; */
8-
97
const Page = styled.div`
108
margin: 33px 90px;
119
`;
@@ -63,21 +61,7 @@ const MOCK_DATA = [
6361
];
6462

6563
function ClassMastery() {
66-
/* const { data: taskByIdQuery } = useGetTaskByIdQuery({ */
67-
/* variables: { taskId }, */
68-
/* }); */
69-
70-
/* const [page, setPage] = useState(0); */
71-
72-
/* const maxPage: number = */
73-
/* taskByIdQuery === undefined || taskByIdQuery.task.pages === undefined */
74-
/* ? 0 */
75-
/* : taskByIdQuery.task.pages.length - 1; */
76-
77-
/* if (!taskByIdQuery) { */
78-
/* return <></>; */
79-
/* } */
80-
64+
//TODO Get real data
8165
return (
8266
<Page>
8367
<Header>Class Mastery</Header>

src/Screens/ClassMastery/StudentMasteryRow/StudentMasteryRow.tsx

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { useState } from 'react';
22
import styled from 'styled-components';
33
import { color } from '../../../Components/constants.json';
4-
/* import { useGetTaskByIdQuery } from '../../__generated__/types'; */
54

65
type MasteryBarProps = { percentage: number };
76

@@ -76,21 +75,6 @@ const Content = styled.div`
7675
`;
7776

7877
function StudentMasteryRow({ name, learningObjectives }: any) {
79-
/* const { data: taskByIdQuery } = useGetTaskByIdQuery({ */
80-
/* variables: { taskId }, */
81-
/* }); */
82-
83-
/* const [page, setPage] = useState(0); */
84-
85-
/* const maxPage: number = */
86-
/* taskByIdQuery === undefined || taskByIdQuery.task.pages === undefined */
87-
/* ? 0 */
88-
/* : taskByIdQuery.task.pages.length - 1; */
89-
90-
/* if (!taskByIdQuery) { */
91-
/* return <></>; */
92-
/* } */
93-
9478
return (
9579
<Container>
9680
<Header>

0 commit comments

Comments
 (0)