Skip to content

Commit 1923615

Browse files
committed
Refactoring
1 parent b43a55e commit 1923615

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/screens/Main.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import React from 'react';
22
import { Route, Switch, Link, Redirect } from 'react-router-dom';
33
import { Layout } from 'antd';
4-
import { observer } from 'mobx-react';
54

65
import ProjectsScreen from './projects/ProjectsScreen';
76
import TaskControl from '../components/TaskControl/TaskControl';
@@ -11,7 +10,7 @@ import Dashboard from './dashboard/Dashboard';
1110

1211
const { Header } = Layout;
1312

14-
export default observer(function Main() {
13+
const Main = () => {
1514
return (
1615
<Layout className="layout">
1716
<Header>
@@ -35,4 +34,6 @@ export default observer(function Main() {
3534
</Switch>
3635
</Layout>
3736
);
38-
});
37+
};
38+
39+
export default Main;

0 commit comments

Comments
 (0)