From c645db4377a83f046ea805bcfa004492eda2af3b Mon Sep 17 00:00:00 2001 From: Alexander Burmatov Date: Thu, 23 May 2024 01:16:48 +0300 Subject: [PATCH] Remove login page It is not needed because it is useless in the public repository (thx Nadezhda Fedorova) --- src/App.js | 28 ++++++++-------------- src/pages/LoginPage.jsx | 51 ----------------------------------------- 2 files changed, 9 insertions(+), 70 deletions(-) delete mode 100644 src/pages/LoginPage.jsx diff --git a/src/App.js b/src/App.js index 6fdd96cd..f842e5f4 100644 --- a/src/App.js +++ b/src/App.js @@ -1,11 +1,9 @@ -import React, { useState } from 'react'; +import React from 'react'; import { BrowserRouter as Router, Routes, Route, Navigate } from 'react-router-dom'; -import { isAuthenticated, isApiKeyEnabled } from 'utilities/authUtilities'; -import { AuthWrapper } from 'utilities/AuthWrapper'; +import { isApiKeyEnabled } from 'utilities/authUtilities'; import HomePage from './pages/HomePage'; -import LoginPage from './pages/LoginPage'; import RepoPage from 'pages/RepoPage'; import TagPage from 'pages/TagPage'; import ExplorePage from 'pages/ExplorePage'; @@ -14,25 +12,17 @@ import UserManagementPage from 'pages/UserManagementPage'; import './App.css'; function App() { - const [isLoggedIn, setIsLoggedIn] = useState(isAuthenticated()); - return (
- }> - } /> - } /> - } /> - } /> - } /> - {isApiKeyEnabled() && } />} - } /> - - }> - } /> - } /> - + } /> + } /> + } /> + } /> + } /> + {isApiKeyEnabled() && } />} + } />
diff --git a/src/pages/LoginPage.jsx b/src/pages/LoginPage.jsx deleted file mode 100644 index 996c74b3..00000000 --- a/src/pages/LoginPage.jsx +++ /dev/null @@ -1,51 +0,0 @@ -// react global -import React from 'react'; - -// components -import SignIn from '../components/Login/SignIn'; - -import makeStyles from '@mui/styles/makeStyles'; -import { Grid } from '@mui/material'; -import SigninPresentation from 'components/Login/SignInPresentation'; -import { useState } from 'react'; -import Loading from 'components/Shared/Loading'; - -const useStyles = makeStyles(() => ({ - container: { - minHeight: '100vh', - backgroundColor: '#F6F7F9' - }, - signinContainer: { - display: 'flex', - alignItems: 'center', - justifyContent: 'center' - }, - loadingHidden: { - display: 'none' - } -})); - -function LoginPage({ isLoggedIn, setIsLoggedIn }) { - const [isLoading, setIsLoading] = useState(true); - const classes = useStyles(); - - return ( - - {isLoading && } - - - - - - - - ); -} - -export default LoginPage;