Skip to content

Commit

Permalink
chore: remove unnecessary codes
Browse files Browse the repository at this point in the history
  • Loading branch information
xyhp915 committed Mar 11, 2024
1 parent 4846834 commit 9b10f75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import "./pages/User/index.css"
import { Route, Routes, useLocation } from 'react-router-dom'
import { HomePage } from './pages/Home'
import { DownloadsPage } from './pages/Downloads'
Expand All @@ -10,12 +11,9 @@ import {
} from './state'
import React, { useEffect } from 'react'
import { Toaster } from 'react-hot-toast'
import { ProPage } from './pages/Pro'
import { UserEntryPage } from './pages/User'
import { Modal } from './components/Modal'
import { createPortal } from 'react-dom'
import { scrollToTop } from './components/utils'
import { AccountUserInfoPane, LemoSubscriptions } from './pages/User/Account'
import cx from 'classnames'
import { TermsPage } from './pages/User/Terms'
import { PrivacyPolicyPage } from './pages/User/PrivacyPolicy'
Expand Down Expand Up @@ -82,14 +80,8 @@ export function App() {
<Routes>
<Route path={'/'} element={<HomePage/>}/>
<Route path={'/downloads'} element={<DownloadsPage/>}/>
{/*<Route path={'/pro'} element={<ProPage/>}></Route>*/}
<Route path={'/terms'} element={<TermsPage/>}></Route>
<Route path={'/privacy-policy'} element={<PrivacyPolicyPage/>}></Route>
{/*<Route path={'/login'} element={<UserEntryPage/>}></Route>*/}
{/*<Route path={'/account'} element={<UserEntryPage/>}>*/}
{/* <Route path={''} element={<AccountUserInfoPane userInfo={userInfoState.get({ noproxy: true })}/>}/>*/}
{/* <Route path={'subscriptions'} element={<LemoSubscriptions/>}/>*/}
{/*</Route>*/}
</Routes>

{/* modals */}
Expand Down
2 changes: 1 addition & 1 deletion src/pages/User/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { AccountContent } from './Account'
import { useLocation } from 'react-router-dom'

// setup amplify configures
setupAuthConfigure(authConfig)
// setupAuthConfigure(authConfig)

function UserEntryPage () {
const appState = useAppState()
Expand Down

0 comments on commit 9b10f75

Please sign in to comment.