18 lines
473 B
JavaScript
18 lines
473 B
JavaScript
import React from 'react';
|
|
import { Redirect, Route, Switch } from 'react-router-dom';
|
|
import JKPeople from '../components/page/JKPeople';
|
|
import JKNotifications from '../components/page/JKNotifications';
|
|
|
|
const JKDashboardRoutes = () => (
|
|
|
|
<Switch>
|
|
<Route path="/friends" component={JKPeople} />
|
|
<Route path="/notifications" component={JKNotifications} />
|
|
{/*Redirect*/}
|
|
<Redirect to="/errors/404" />
|
|
</Switch>
|
|
);
|
|
|
|
|
|
export default JKDashboardRoutes;
|