Skip to content

Commit fdffd5a

Browse files
committed
chore: cleanup unused imports
1 parent e5f0932 commit fdffd5a

3 files changed

Lines changed: 6 additions & 9 deletions

File tree

client/src/Components/ClassView/ClassView.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ import { setSelected, setHistory } from '../../store/actions';
55
import Course from '../../Types/course';
66
import { ReactComponent as CloseBtn } from '../../Assets/window-close-regular.svg';
77
import ClassDashboard from './ClassDashboard';
8-
import Overview from '../Calendar/Overview';
98
import User from '../../Types/user';
10-
import DeleteBtn from './DeleteBtn';
119

1210
const headerStyle =
1311
'bg-black text-white flex flex-row justify-between items-center content-center p-8 h-20 mb-4 text-3xl';

client/src/Components/ClassView/DeleteBtn.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useState, useEffect } from 'react';
1+
import React, { useState } from 'react';
22
import { useSelector, useDispatch } from 'react-redux';
33
import { useNavigate } from 'react-router';
44
import { useDeleteCourseMutation } from '../../generated/graphql';

client/src/Components/TeacherHomepage/Navbar.tsx

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import React from 'react';
22
import { Link } from 'react-router-dom';
3-
import User from '../../Types/user';
43
import { useNavigate } from 'react-router';
54
import { useLogoutMutation, useMeQuery } from '../../generated/graphql';
65
import { ReactComponent as QRLogo } from '../../Assets/thePerfectestLogo2.svg';
@@ -20,14 +19,14 @@ const Navbar: React.FC = () => {
2019
};
2120
return (
2221
<nav className={navStyle}>
23-
<Link to='/'>
24-
<QRLogo className='w-48 flex' />
22+
<Link to="/">
23+
<QRLogo className="w-48 flex" />
2524
</Link>
26-
<section className='flex flex-row items-center'>
27-
<h3 className='pr-8 font-lato font-bold text-lg'>
25+
<section className="flex flex-row items-center">
26+
<h3 className="pr-8 font-lato font-bold text-lg">
2827
{data?.me?.name} {data?.me?.lastname}
2928
</h3>
30-
<button onClick={handleLogout} className='font-normal hover:text-green'>
29+
<button onClick={handleLogout} className="font-normal hover:text-green">
3130
Logout
3231
</button>
3332
</section>

0 commit comments

Comments
 (0)