modify color card by data
This commit is contained in:
@@ -17,6 +17,7 @@ const TableList = memo(function TableList({
|
||||
showEditModal,
|
||||
showDeleteDialog,
|
||||
cardColor,
|
||||
fieldColor,
|
||||
}) {
|
||||
const [gridLoading, setGridLoading] = useState(false);
|
||||
|
||||
@@ -29,7 +30,7 @@ const TableList = memo(function TableList({
|
||||
total_page: 1,
|
||||
});
|
||||
|
||||
const [viewMode, setViewMode] = useState('card');
|
||||
const [viewMode, setViewMode] = useState('list');
|
||||
|
||||
const { useBreakpoint } = Grid;
|
||||
|
||||
@@ -98,6 +99,7 @@ const TableList = memo(function TableList({
|
||||
{(isMobile && mobile) || viewMode === 'card' ? (
|
||||
<CardList
|
||||
cardColor={cardColor}
|
||||
fieldColor={fieldColor}
|
||||
data={data}
|
||||
column={columns}
|
||||
header={header}
|
||||
|
||||
Reference in New Issue
Block a user