Skip to content

Commit f9ee904

Browse files
author
Dmitry Yadrikhinsky
committed
Redirect to projects
1 parent 1e9dae2 commit f9ee904

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/screens/Main.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import React from 'react';
2-
import { Route, Switch, Link } from 'react-router-dom';
2+
import { Route, Switch, Link, Redirect } from 'react-router-dom';
33
import { Layout } from 'antd';
44
import { observer } from 'mobx-react';
55

@@ -26,6 +26,9 @@ export default observer(function Main() {
2626
<TaskControl />
2727
</Header>
2828
<Switch>
29+
<Route exact path="/">
30+
<Redirect to="/projects" />
31+
</Route>
2932
<Route path="/hours">
3033
<HoursView />
3134
</Route>

0 commit comments

Comments
 (0)