Skip to content

Commit

Permalink
clean up unused imports and other compilation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
jacksontromero committed Jan 13, 2024
1 parent 335002a commit c8919f2
Show file tree
Hide file tree
Showing 8 changed files with 6 additions and 12 deletions.
3 changes: 0 additions & 3 deletions client/src/components/home/shared/AskQuestion.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import BaseCard from '../../common/cards/BaseCard';
import HomeService from '../../../services/HomeService';
import {UserDataContext} from '../../../contexts/UserDataContext';
import {QueueDataContext} from '../../../contexts/QueueDataContext';
import {StudentDataContext} from '../../../contexts/StudentDataContext';

function createData(assignment_id, name) {
return {assignment_id, name};
Expand All @@ -34,8 +33,6 @@ export default function AskQuestion() {

const [askDisabled, setAskDisabled] = useState(false);

const {studentData, setStudentData} = useContext(StudentDataContext);

const locations = useMemo(() => {
if (queueData != null) {
const day = date.getDay();
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/home/shared/QueueStats.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useContext, useEffect} from 'react';
import React, {useContext} from 'react';
import {
CardContent, Divider, Stack, Typography, useTheme,
} from '@mui/material';
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, {useContext, useState} from 'react';
import {
Button, Dialog, DialogContent, FormControl, Input, Link, Stack, Typography,
Button, Dialog, DialogContent, FormControl, Input, Link, Typography,
} from '@mui/material';

import HomeService from '../../../services/HomeService';
Expand Down
3 changes: 1 addition & 2 deletions client/src/components/home/ta/dialogs/FilterOptions.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import React, {useState, useEffect, useContext, useMemo} from 'react';
import React, {useContext, useMemo} from 'react';

import {List, ListSubheader, ListItem,
ListItemButton, ListItemIcon, ListItemText, Checkbox,
} from '@mui/material';

import SettingsService from '../../../../services/SettingsService';
import {QueueDataContext} from '../../../../contexts/QueueDataContext';

function createData(assignment_id, name) {
Expand Down
2 changes: 0 additions & 2 deletions client/src/components/metrics/MetricsMain.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import {
Typography,
} from '@mui/material';

import DateTimeSelector from './DateTimeSelector';
import PersonalStats from './PersonalStats';
import OverallStats from './OverallStats';
import CumulativeStats from './CumulativeStats';
Expand All @@ -19,7 +18,6 @@ export default function MetricsMain(props) {
<Typography variant="h3" textAlign='center' sx={{mt: 4}} fontWeight='bold'>
Metrics
</Typography>
{/* <DateTimeSelector/> */}
<PersonalStats/>

<OverallStats/>
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/settings/admin/DayPicker.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {Delete as DeleteIcon} from '@mui/icons-material';
import SettingsService from '../../../services/SettingsService';

export default function DayPicker(props) {
const {convertIdxToDays, daysOfWeek, room, roomDictionary, setRoomDictionary} = props;
const {convertIdxToDays, daysOfWeek, room, roomDictionary} = props;
const [newDays, setNewDays] = useState(convertIdxToDays(roomDictionary[room]));

const convertDaysToIdx = (daysArr) => {
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/settings/admin/Locations.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useState, useEffect, useContext, useMemo} from 'react';
import React, {useState, useContext, useMemo} from 'react';
import {
TableCell, Typography,
} from '@mui/material';
Expand Down
2 changes: 1 addition & 1 deletion client/src/components/settings/admin/TASettings.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import React, {useState, useEffect, useContext, useMemo} from 'react';
import React, {useState, useContext, useMemo} from 'react';
import {
Button, Checkbox, FormControlLabel, Grid, TableCell, TableRow, Typography, useTheme,
} from '@mui/material';
Expand Down

0 comments on commit c8919f2

Please sign in to comment.