diff --git a/frontend/src/DashboardApp.js b/frontend/src/DashboardApp.js index c4bf4eab..eea8c2ae 100644 --- a/frontend/src/DashboardApp.js +++ b/frontend/src/DashboardApp.js @@ -2,7 +2,6 @@ import React from 'react' import { ThemeProvider } from '@mui/styles'; import { BrowserRouter } from 'react-router-dom' import light from './themes/light' -// import AppRoutes from './routes' import history from './services/history' import { AuthProvider } from './contexts/AuthContext.js' import { QueryClient, QueryClientProvider } from 'react-query' diff --git a/frontend/src/PublicApp.js b/frontend/src/PublicApp.js index 6ab2bcb4..af61597c 100644 --- a/frontend/src/PublicApp.js +++ b/frontend/src/PublicApp.js @@ -18,7 +18,6 @@ function PublicApp() { - {/* */} diff --git a/frontend/src/pages/PredictionEvents/Detail.js b/frontend/src/pages/PredictionEvents/Detail.js index b05fa061..42b25817 100644 --- a/frontend/src/pages/PredictionEvents/Detail.js +++ b/frontend/src/pages/PredictionEvents/Detail.js @@ -1,9 +1,9 @@ import React, { useEffect, useState } from 'react'; import moment from 'moment'; import { useParams } from 'react-router-dom' -import Grid from '@mui/material/Grid' -import Card from '@mui/material/Card' -import CardHeader from '@mui/material/CardHeader' +import Grid from '@mui/material/Grid'; +import Card from '@mui/material/Card'; +import CardHeader from '@mui/material/CardHeader'; import CardContent from '@mui/material/CardContent' import Box from '@mui/material/Box'; import List from '../../components/List'; @@ -253,7 +253,7 @@ function PredictionEventDetail() { <> - + @@ -268,7 +268,7 @@ function PredictionEventDetail() { )} - + @@ -276,7 +276,7 @@ function PredictionEventDetail() { - + diff --git a/frontend/src/routes/index.js b/frontend/src/routes/index.js index 85d84f00..a1e49d63 100644 --- a/frontend/src/routes/index.js +++ b/frontend/src/routes/index.js @@ -1,329 +1,10 @@ import React from 'react' import { Routes, Route, Navigate } from 'react-router-dom' - -import Dashboard from '../pages/Dashboard' -// import Skybot from '../pages/Skybot' -// import SkybotDetail from '../pages/Skybot/Detail' -// import SkybotAsteroid from '../pages/Skybot/Asteroid' -// import SkybotStatistics from '../pages/Skybot/Statistics' -// import OrbitTrace from '../pages/OrbitTrace/' -// import DesManagement from '../pages/DesManagement' - -import PredictOccultation from '../pages/PredictOccultation' -import PredictDetail from '../pages/PredictOccultation/Detail' -import PredictionAsteroid from '../pages/PredictOccultation/Asteroid' - - -import Home from '../pages/LandingPage/Home' import { useAuth } from '../contexts/AuthContext.js' -import Header from '../components/LandingPage/Header' -import Footer from '../components/LandingPage/Footer' -import PersistentDrawerLeft from '../components/Drawer' -// import OrbitTraceDetail from '../pages/OrbitTrace/Detail' -// import OrbitTraceAsteroid from '../pages/OrbitTrace/Asteroid' -import PublicHeader from '../pages/PublicPortal/Header/index' -import PublicHome from '../pages/PublicPortal/Home' -import PublicAboutUs from '../pages/PublicPortal/AboutUs/index' -import PublicDocumentation from '../pages/PublicPortal/documentation/index' -import PublicContact from '../pages/PublicPortal/Contact/index' -import FooterSupporters from '../pages/PublicPortal/Footer/FooterSupporters' - -import PredictionEvents from '../pages/PredictionEvents/index' -import PredictionEventDetail from '../pages/PredictionEvents/Detail' - -import AsteroidJob from '../pages/AsteroidJob/index' -import AsteroidJobDetail from '../pages/AsteroidJob/AsteroidJobDetail' - import { PublicPageRoutes } from './public_page' import { DashboardPageRoutes } from './dashboard' export default function AppRoutes() { - const { isAuthenticated, signIn } = useAuth() - - // const PrivateRoute = ({ auth: { isAuthenticated }, children }) => { - // return isAuthenticated ? children : signIn() - // } - - // const LandingPage = ({ children }) => { - // return ( - // <> - //
- // {children} - //