mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
feat: Ability to hide/show financial statement header.
This commit is contained in:
@@ -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>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user