feat: highlight the inactive accounts.

This commit is contained in:
Ahmed Bouhuolia
2020-12-03 13:01:46 +02:00
parent 0359003d3a
commit b941866d88
2 changed files with 16 additions and 1 deletions

View File

@@ -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}

View File

@@ -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;