Skip to content

Commit

Permalink
Misc typo fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
ccxzhang committed Oct 3, 2024
1 parent e2e6313 commit 2b082fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions src/renderer/src/App.jsx
Original file line number Diff line number Diff line change
@@ -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'
Expand All @@ -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'
Expand All @@ -28,6 +28,7 @@ const App = () => {
dispatch(openModal({ type: 'SIGN_OUT' }))
}

// eslint-disable-next-line react/prop-types
const PrivateRoute = ({ children }) => {
return accessToken ? children : <Navigate to="/login" />
}
Expand Down
2 changes: 1 addition & 1 deletion src/renderer/src/pages/Facility/Map.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 }) => (
<div
className="absolute bg-white border border-gray-300 rounded px-2 py-1 text-sm shadow-lg pointer-events-none whitespace-nowrap"
Expand Down

0 comments on commit 2b082fa

Please sign in to comment.