fix: financial statements.

This commit is contained in:
Ahmed Bouhuolia
2020-05-13 02:39:36 +02:00
parent 5ffb54992e
commit 00de156c9f
23 changed files with 276 additions and 104 deletions

View File

@@ -1,15 +1,18 @@
import React from 'react';
import {Menu, MenuItem, MenuDivider} from '@blueprintjs/core';
import {useHistory} from 'react-router-dom';
import { useHistory, useLocation } from 'react-router-dom';
import preferencesMenu from 'config/preferencesMenu';
export default function PreferencesSidebar() {
const history = useHistory();
const location = useLocation();
const items = preferencesMenu.map((item) => (
(item.divider) ?
<MenuDivider title={item.title} /> :
<MenuDivider
title={item.title} /> :
<MenuItem
active={(item.href && item.href === location.pathname)}
text={item.text}
label={item.label}
disabled={item.disabled}