mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-21 07:10:33 +00:00
feat: highlight the inactive accounts.
This commit is contained in:
@@ -206,6 +206,12 @@ function AccountsDataTable({
|
|||||||
[onSelectedRowsChange],
|
[onSelectedRowsChange],
|
||||||
);
|
);
|
||||||
|
|
||||||
|
const rowClassNames = (row) => {
|
||||||
|
return {
|
||||||
|
'inactive': !row.original.active,
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className={classNames(CLASSES.DASHBOARD_DATATABLE)}>
|
<div className={classNames(CLASSES.DASHBOARD_DATATABLE)}>
|
||||||
<DataTable
|
<DataTable
|
||||||
@@ -219,6 +225,7 @@ function AccountsDataTable({
|
|||||||
onSelectedRowsChange={handleSelectedRowsChange}
|
onSelectedRowsChange={handleSelectedRowsChange}
|
||||||
loading={accountsLoading && !isMounted}
|
loading={accountsLoading && !isMounted}
|
||||||
rowContextMenu={rowContextMenu}
|
rowContextMenu={rowContextMenu}
|
||||||
|
rowClassNames={rowClassNames}
|
||||||
expandColumnSpace={1}
|
expandColumnSpace={1}
|
||||||
autoResetExpanded={false}
|
autoResetExpanded={false}
|
||||||
selectionColumnWidth={50}
|
selectionColumnWidth={50}
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
.bigcapital-datatable{
|
.bigcapital-datatable{
|
||||||
.normal{
|
.normal{
|
||||||
.#{$ns}-icon{
|
.#{$ns}-icon{
|
||||||
color: #6E8091;
|
color: #7f91a2;
|
||||||
padding-left: 15px;
|
padding-left: 15px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -15,6 +15,14 @@
|
|||||||
padding-top: 0.3rem;
|
padding-top: 0.3rem;
|
||||||
padding-bottom: 0.3rem;
|
padding-bottom: 0.3rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tr.inactive .td{
|
||||||
|
color: #646b82;
|
||||||
|
|
||||||
|
&.normal .#{$ns}-icon{
|
||||||
|
color: #9eaab6;
|
||||||
|
}
|
||||||
|
}
|
||||||
.account_name{
|
.account_name{
|
||||||
.bp3-popover-wrapper--inactive-semafro{
|
.bp3-popover-wrapper--inactive-semafro{
|
||||||
margin-left: 8px;
|
margin-left: 8px;
|
||||||
|
|||||||
Reference in New Issue
Block a user