Fixed routing
This commit is contained in:
		
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							
							
								
								
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							@@ -21,3 +21,5 @@
 | 
			
		||||
npm-debug.log*
 | 
			
		||||
yarn-debug.log*
 | 
			
		||||
yarn-error.log*
 | 
			
		||||
 | 
			
		||||
.eslintcache
 | 
			
		||||
 
 | 
			
		||||
@@ -65,10 +65,10 @@ export default function App() {
 | 
			
		||||
          <BS.Container>
 | 
			
		||||
            <Switch>
 | 
			
		||||
            <Route path="/dash" >
 | 
			
		||||
              { !localStorage.getItem('token') || isInvalid ? <Redirect to="/"/> : <Dash/>
 | 
			
		||||
              { !localStorage.getItem('token') || isInvalid ? <Redirect to="/pk-webs"/> : <Dash/>
 | 
			
		||||
              }
 | 
			
		||||
              </Route>
 | 
			
		||||
              <Route exact path="/">
 | 
			
		||||
              <Route exact path="/pk-webs">
 | 
			
		||||
                { isLoading ? <Loading /> :
 | 
			
		||||
            <BS.Card className="mb-3 mt-3">
 | 
			
		||||
            <BS.Card.Header className="d-flex align-items-center justify-content-between">
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,4 @@
 | 
			
		||||
import React from 'react';
 | 
			
		||||
import * as BS from 'react-bootstrap'
 | 
			
		||||
 | 
			
		||||
import System from './System.js'
 | 
			
		||||
import Memberlist from './Memberlist.js'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user