feat: fix accounts issue.

This commit is contained in:
Ahmed Bouhuolia
2020-06-25 13:43:47 +02:00
parent 6074134a53
commit 111aa83908
46 changed files with 797 additions and 345 deletions

View File

@@ -8,15 +8,10 @@ import DialogsContainer from 'components/DialogsContainer';
import PreferencesContent from 'components/Preferences/PreferencesContent';
import PreferencesSidebar from 'components/Preferences/PreferencesSidebar';
import Search from 'containers/GeneralSearch/Search';
import withDashboard from 'containers/Dashboard/withDashboard';
import { compose } from 'utils';
function Dashboard({ sidebarExpended }) {
export default function Dashboard() {
return (
<div className={classNames('dashboard', {
'has-mini-sidebar': !sidebarExpended,
})}>
<div className={classNames('dashboard')}>
<Switch>
<Route path="/preferences">
<Sidebar />
@@ -35,9 +30,3 @@ function Dashboard({ sidebarExpended }) {
</div>
);
}
export default compose(
withDashboard(({ sidebarExpended }) => ({
sidebarExpended,
})),
)(Dashboard);