fix: control report drawer header.

This commit is contained in:
a.bouhuolia
2022-02-16 17:49:28 +02:00
parent 7eacaa0660
commit e6fcbfeea6
16 changed files with 181 additions and 67 deletions

View File

@@ -3,10 +3,15 @@ import classNames from 'classnames';
import { Position, Drawer } from '@blueprintjs/core';
import 'style/containers/FinancialStatements/DrawerHeader.scss';
/**
* Financial statement header.
* @returns {JSX.Element}
*/
export default function FinancialStatementHeader({
children,
isOpen,
drawerProps,
className,
}) {
const timeoutRef = React.useRef();
const [isDrawerOpen, setIsDrawerOpen] = useState(false);
@@ -42,6 +47,7 @@ export default function FinancialStatementHeader({
{
'is-hidden': !isDrawerOpen,
},
className,
)}
>
<Drawer