This commit is contained in:
Ahmed Bouhuolia
2020-03-16 00:06:15 +02:00
parent 56701951b7
commit 73711384f6
7925 changed files with 18478 additions and 959 deletions

View File

@@ -1,12 +1,27 @@
import React from 'react';
import {Switch, Route} from 'react-router';
import Sidebar from 'components/Sidebar/Sidebar';
import DashboardContent from 'components/Dashboard/DashboardContent';
import DialogsContainer from 'components/DialogsContainer';
import PreferencesContent from 'components/Preferences/PreferencesContent';
import PreferencesSidebar from 'components/Preferences/PreferencesSidebar';
export default function() {
return (
<div className="dashboard" id="dashboard">
<Sidebar />
<DashboardContent />
return (
<div className="dashboard dashboard--preferences">
<Switch>
<Route path="/dashboard/preferences">
<Sidebar />
<PreferencesSidebar />
<PreferencesContent />
</Route>
<Route path="/dashboard">
<Sidebar />
<DashboardContent />
</Route>
</Switch>
<DialogsContainer />
</div>
)
);
}