File tree Expand file tree Collapse file tree 6 files changed +7
-81
lines changed Expand file tree Collapse file tree 6 files changed +7
-81
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,12 @@ import { ReactQueryDevtools } from 'react-query/devtools';
4
4
import { BrowserRouter , Route , Switch } from 'react-router-dom' ;
5
5
import './App.css' ;
6
6
import BenchmarkDetail from './components/Benchmarks/BenchmarkDetail' ;
7
- import Dashboard from './components/Dashboard/Dashboard' ;
7
+ import Benchmarks from './components/Benchmarks/Benchmarks' ;
8
+ import CreateBenchmark from './components/Benchmarks/CreateBenchmark' ;
8
9
import Landing from './components/Landing' ;
9
10
import Login from './components/Login' ;
10
11
import Register from './components/Register' ;
11
12
import PrivateRoute from './components/Routing/PrivateRoute' ;
12
- import Benchmarks from './components/Benchmarks/Benchmarks' ;
13
- import CreateBenchmark from './components/Benchmarks/CreateBenchmark' ;
14
13
15
14
function App ( ) {
16
15
const queryClient = new QueryClient ( ) ;
@@ -29,7 +28,6 @@ function App() {
29
28
< Route path = "/register" >
30
29
< Register />
31
30
</ Route >
32
- < PrivateRoute path = "/dashboard" component = { Dashboard } />
33
31
< PrivateRoute exact path = "/benchmarks" component = { Benchmarks } />
34
32
< PrivateRoute
35
33
exact
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import useBenchmarkDetail from '../../hooks/benchmark';
8
8
import useProcessInterval , {
9
9
useLastSubmissionForUser ,
10
10
} from '../../hooks/submissions' ;
11
- import Result from '../Dashboard /Result' ;
11
+ import Result from './Result' ;
12
12
import Header from '../Page/Header' ;
13
13
import Page from '../Page/Page' ;
14
14
File renamed without changes.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const Login: React.FC = () => {
9
9
const { token, setToken } = useToken ( ) ;
10
10
11
11
if ( token ) {
12
- history . push ( '/dashboard ' ) ;
12
+ history . push ( '/benchmarks ' ) ;
13
13
}
14
14
const loginUser = async ( event : any ) => {
15
15
event . preventDefault ( ) ;
@@ -20,7 +20,7 @@ const Login: React.FC = () => {
20
20
) ;
21
21
22
22
setToken ( token ) ;
23
- history . push ( '/dashboard ' ) ;
23
+ history . push ( '/benchmarks ' ) ;
24
24
} ;
25
25
26
26
return (
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ const Register: React.FC = () => {
11
11
const [ message , setMessage ] = useState ( '' ) ;
12
12
13
13
if ( token ) {
14
- history . push ( '/dashboard ' ) ;
14
+ history . push ( '/benchmarks ' ) ;
15
15
}
16
16
const registerUser = async ( event : any ) => {
17
17
event . preventDefault ( ) ;
@@ -46,7 +46,7 @@ const Register: React.FC = () => {
46
46
) ;
47
47
48
48
setToken ( token ) ;
49
- history . push ( '/dashboard ' ) ;
49
+ history . push ( '/benchmarks ' ) ;
50
50
} ;
51
51
52
52
return (
You can’t perform that action at this time.
0 commit comments