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