From 2b082faad6f4ded8dda87275efefa232dd43dfb8 Mon Sep 17 00:00:00 2001 From: Charlie Zhang Date: Thu, 3 Oct 2024 15:48:28 -0400 Subject: [PATCH] Misc typo fix. --- src/renderer/src/App.jsx | 7 ++++--- src/renderer/src/pages/Facility/Map.jsx | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/renderer/src/App.jsx b/src/renderer/src/App.jsx index 040c61c..13b9b0e 100644 --- a/src/renderer/src/App.jsx +++ b/src/renderer/src/App.jsx @@ -1,5 +1,5 @@ import React, { useState, useEffect } from 'react' -import { HashRouter as Router, Routes, Route, Link, Navigate } from 'react-router-dom' +import { HashRouter as Router, Routes, Route, Navigate } from 'react-router-dom' import { useSelector, useDispatch } from 'react-redux' import { initializeAuth } from './reducers/authReducer' import MainPage from './pages/MainPage' @@ -9,8 +9,8 @@ import About from './pages/About' import NavBar from './pages/NavBar' import HistoryPage from './pages/DownloadHistory' import DataDictionary from './pages/DataDictionary' -import Map from './pages/Facility/map' -import FacilityTable from './pages/Facility/table' +import Map from './pages/Facility/Map' +import FacilityTable from './pages/Facility/Table' import ModalManager from './pages/Modals/ModalManager' import PrivacyPolicy from './pages/Privacy' import { servicesDb, dictionaryDb, queryDb } from './service/db' @@ -28,6 +28,7 @@ const App = () => { dispatch(openModal({ type: 'SIGN_OUT' })) } + // eslint-disable-next-line react/prop-types const PrivateRoute = ({ children }) => { return accessToken ? children : } diff --git a/src/renderer/src/pages/Facility/Map.jsx b/src/renderer/src/pages/Facility/Map.jsx index bdafabc..a623cd7 100644 --- a/src/renderer/src/pages/Facility/Map.jsx +++ b/src/renderer/src/pages/Facility/Map.jsx @@ -38,7 +38,7 @@ const STYLES = { } // Tooltip Component -// eslint-disable-next-line react/display-name +// eslint-disable-next-line react/display-name, react/prop-types const Tooltip = React.memo(({ x, y, content }) => (