added first routing and mock for groups page

This commit is contained in:
Maren Süwer
2018-07-31 10:16:18 +02:00
parent 3178c14af8
commit 83c5e6746b
4 changed files with 36 additions and 1 deletions

View File

@@ -13,6 +13,8 @@ import ProtectedRoute from "../components/ProtectedRoute";
import AddUser from "../users/containers/AddUser";
import SingleUser from "../users/containers/SingleUser";
import Groups from "../groups/containers/Groups";
type Props = {
authenticated?: boolean
};
@@ -53,6 +55,12 @@ class Main extends React.Component<Props> {
path="/user/:name"
component={SingleUser}
/>
<ProtectedRoute
exact
path="/groups"
component={Groups}
authenticated={authenticated}
/>
</Switch>
</div>
);