Skip to content
This repository has been archived by the owner on Jan 9, 2023. It is now read-only.

Commit

Permalink
chore: remove login
Browse files Browse the repository at this point in the history
  • Loading branch information
jackcmeyer committed Oct 24, 2020
1 parent 844b196 commit 737326d
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 406 deletions.
2 changes: 0 additions & 2 deletions src/App.tsx
Expand Up @@ -7,7 +7,6 @@ import { useDispatch } from 'react-redux'
import { BrowserRouter, Route, Switch } from 'react-router-dom'

import HospitalRun from './HospitalRun'
import Login from './login/Login'
import { TitleProvider } from './page-header/title/TitleContext'
import { remoteDb } from './shared/config/pouchdb'
import { getCurrentSession } from './user/user-slice'
Expand Down Expand Up @@ -41,7 +40,6 @@ const App: React.FC = () => {
<BrowserRouter>
<Suspense fallback={<Spinner color="blue" loading size={[10, 25]} type="ScaleLoader" />}>
<Switch>
<Route exact path="/login" component={Login} />
<TitleProvider>
<Route path="/" component={HospitalRun} />
</TitleProvider>
Expand Down
7 changes: 1 addition & 6 deletions src/HospitalRun.tsx
@@ -1,7 +1,7 @@
import { Toaster } from '@hospitalrun/components'
import React from 'react'
import { useSelector } from 'react-redux'
import { Redirect, Route, Switch } from 'react-router-dom'
import { Route, Switch } from 'react-router-dom'

import Dashboard from './dashboard/Dashboard'
import Imagings from './imagings/Imagings'
Expand All @@ -23,11 +23,6 @@ import { RootState } from './shared/store'
const HospitalRun = () => {
const { title } = useTitle()
const { sidebarCollapsed } = useSelector((state: RootState) => state.components)
const { user } = useSelector((root: RootState) => root.user)

if (user === undefined) {
return <Redirect to="/login" />
}

return (
<div>
Expand Down
314 changes: 0 additions & 314 deletions src/__tests__/login/Login.test.tsx

This file was deleted.

0 comments on commit 737326d

Please sign in to comment.