diff --git a/src/components/Table/Table.js b/src/components/Table/Table.js index ca756e8..38e0f0d 100644 --- a/src/components/Table/Table.js +++ b/src/components/Table/Table.js @@ -114,11 +114,15 @@ const Table = ({ )} {!isLoading && data.length > 0 && buildRows(data, columnsData).map(row => ( - {columnsData.map(header => ( - - {row[header.key]} - - ))} + {columnsData.map(header => { + const isEmpty = row[header.key] == null || row[header.key] === ''; + const rowStyle = isEmpty ? header.emptyRow : header.tdStyle; + return ( + + {row[header.key]} + + ); + })} ))}