Skip to content

Commit 2ca2d1a

Browse files
committed
resoled issues of unused values
1 parent e7ba753 commit 2ca2d1a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

web/src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { useState as _useState } from 'react';
22
import { Route, Routes, BrowserRouter, useLocation } from 'react-router-dom';
33
import './App.css';
44
import CASCallback from './auth/CASCallback';
5-
import ProtectedRoute from './auth/ProtectedRoute';
5+
import _ProtectedRoute from './auth/ProtectedRoute';
66
import UploadPage from './pages/UploadPage';
77
import ModifyPage from './pages/ModifyPage';
88
import Nav from './components/nav-bar/nav-bar';

web/src/pages/UploadPage.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { ChangeEvent, useState } from "react";
1+
import { useState } from "react";
22
import "../App.css";
3-
import { Button, Input } from "@nextui-org/react";
3+
import { Button } from "@nextui-org/react";
44
import UploadPageSliver from "../components/upload-page-sliver";
55
import { useNavigate } from "react-router-dom";
66
import { GPTResponse } from "../types/types";
@@ -55,7 +55,7 @@ export default function UploadPage() {
5555
};
5656

5757
// Handle the click to trigger file input
58-
const handleDivClick = (event: React.MouseEvent<HTMLDivElement>): void => {
58+
const handleDivClick = (_event: React.MouseEvent<HTMLDivElement>): void => {
5959
const fileInput = document.getElementById(
6060
"dropzone-file"
6161
) as HTMLInputElement;

0 commit comments

Comments
 (0)