We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e9dae2 commit f9ee904Copy full SHA for f9ee904
src/screens/Main.tsx
@@ -1,5 +1,5 @@
1
import React from 'react';
2
-import { Route, Switch, Link } from 'react-router-dom';
+import { Route, Switch, Link, Redirect } from 'react-router-dom';
3
import { Layout } from 'antd';
4
import { observer } from 'mobx-react';
5
@@ -26,6 +26,9 @@ export default observer(function Main() {
26
<TaskControl />
27
</Header>
28
<Switch>
29
+ <Route exact path="/">
30
+ <Redirect to="/projects" />
31
+ </Route>
32
<Route path="/hours">
33
<HoursView />
34
</Route>
0 commit comments