mirror of
https://github.com/hyperspacedev/hyperspace
synced 2025-02-07 12:53:31 +01:00
Remove 404 reference
This commit is contained in:
parent
9ead8b3902
commit
4f676cec64
31
src/App.tsx
31
src/App.tsx
@ -3,7 +3,7 @@ import {MuiThemeProvider, CssBaseline, withStyles } from '@material-ui/core';
|
||||
import { setHyperspaceTheme, darkMode } from './utilities/themes';
|
||||
import AppLayout from './components/AppLayout';
|
||||
import {styles} from './App.styles';
|
||||
import {Route, Switch} from 'react-router-dom';
|
||||
import {Route} from 'react-router-dom';
|
||||
import AboutPage from './pages/About';
|
||||
import Settings from './pages/Settings';
|
||||
import { getUserDefaultBool, getUserDefaultTheme } from './utilities/settings';
|
||||
@ -50,22 +50,19 @@ class App extends Component<any, any> {
|
||||
<Route path="/welcome" component={WelcomePage}/>
|
||||
<div>
|
||||
{ userLoggedIn()? <AppLayout/>: null}
|
||||
<Switch>
|
||||
<PrivateRoute exact path="/" component={HomePage}/>
|
||||
<PrivateRoute path="/home" component={HomePage}/>
|
||||
<PrivateRoute path="/local" component={LocalPage}/>
|
||||
<PrivateRoute path="/public" component={PublicPage}/>
|
||||
<PrivateRoute path="/messages" component={MessagesPage}/>
|
||||
<PrivateRoute path="/notifications" component={NotificationsPage}/>
|
||||
<PrivateRoute path="/profile/:profileId" component={ProfilePage}/>
|
||||
<PrivateRoute path="/conversation/:conversationId" component={Conversation}/>
|
||||
<PrivateRoute path="/search" component={SearchPage}/>
|
||||
<PrivateRoute path="/settings" component={Settings}/>
|
||||
<PrivateRoute path="/about" component={AboutPage}/>
|
||||
<PrivateRoute path="/compose" component={Composer}/>
|
||||
<PrivateRoute path="/recommended" component={RecommendationsPage}/>
|
||||
<PrivateRoute component={Missingno}/>
|
||||
</Switch>
|
||||
<PrivateRoute exact path="/" component={HomePage}/>
|
||||
<PrivateRoute path="/home" component={HomePage}/>
|
||||
<PrivateRoute path="/local" component={LocalPage}/>
|
||||
<PrivateRoute path="/public" component={PublicPage}/>
|
||||
<PrivateRoute path="/messages" component={MessagesPage}/>
|
||||
<PrivateRoute path="/notifications" component={NotificationsPage}/>
|
||||
<PrivateRoute path="/profile/:profileId" component={ProfilePage}/>
|
||||
<PrivateRoute path="/conversation/:conversationId" component={Conversation}/>
|
||||
<PrivateRoute path="/search" component={SearchPage}/>
|
||||
<PrivateRoute path="/settings" component={Settings}/>
|
||||
<PrivateRoute path="/about" component={AboutPage}/>
|
||||
<PrivateRoute path="/compose" component={Composer}/>
|
||||
<PrivateRoute path="/recommended" component={RecommendationsPage}/>
|
||||
</div>
|
||||
|
||||
</MuiThemeProvider>
|
||||
|
Loading…
x
Reference in New Issue
Block a user