feat: Ability to hide/show financial statement header.

This commit is contained in:
Ahmed Bouhuolia
2020-05-27 20:21:05 +02:00
parent 2e8ffa2aa9
commit c1659d191f
47 changed files with 914 additions and 301 deletions

View File

@@ -1,9 +1,14 @@
import React from 'react';
import classNames from 'classnames';
export default function FinancialStatementHeader({ children }) {
export default function FinancialStatementHeader({ show, children }) {
return (
<div class="financial-statement__header">
{ children }
<div
className={classNames('financial-statement__header', {
'is-hidden': !show,
})}
>
{children}
</div>
);
}
}