Skip to content

Commit

Permalink
fix: apply table style
Browse files Browse the repository at this point in the history
  • Loading branch information
Xstoudi committed Jul 25, 2023
1 parent 244b922 commit 5a5781f
Showing 1 changed file with 5 additions and 15 deletions.
20 changes: 5 additions & 15 deletions src/components/modal/LogModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,27 +88,17 @@ function LogModal() {
/>
</Table.Header>
{reversedLogs.map((log) => {
const cellStyle: CSSProperties = {
const rowStyle: CSSProperties = {
backgroundColor: getRowColor(log.level),
};
return (
<Table.Row key={log.id}>
<ValueRenderers.Number
style={cellStyle}
value={log.id}
/>
<Table.Row key={log.id} style={rowStyle}>
<ValueRenderers.Number value={log.id} />
<ValueRenderers.Text
style={cellStyle}
value={logsDataFormat.format(log.time)}
/>
<ValueRenderers.Text
style={cellStyle}
value={log.levelLabel}
/>
<ValueRenderers.Text
style={cellStyle}
value={log.message}
/>
<ValueRenderers.Text value={log.levelLabel} />
<ValueRenderers.Text value={log.message} />
</Table.Row>
);
})}
Expand Down

0 comments on commit 5a5781f

Please sign in to comment.