mirror of
https://github.com/status-im/fathom.git
synced 2025-03-01 11:30:28 +00:00
use classnames to determine main-col
This commit is contained in:
parent
c3db9377b1
commit
b85f2f490b
@ -83,11 +83,11 @@ class Table extends Component {
|
|||||||
)}) : <div class="table-row"><div class="cell main-col">Nothing here, yet.</div></div>;
|
)}) : <div class="table-row"><div class="cell main-col">Nothing here, yet.</div></div>;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div class={(state.loading ? "loading" : '')}>
|
<div class={classNames({ loading: state.loading })}>
|
||||||
<div class="table-row header">
|
<div class="table-row header">
|
||||||
{props.headers.map((header, i) => {
|
{props.headers.map((header, i) => {
|
||||||
return (<div class={i === 0 ? 'main-col cell' : 'cell'}>{header}</div>)
|
return <div class={classNames("cell", { "main-col": i === 0 })}>{header}</div>
|
||||||
})}
|
})}
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{tableRows}
|
{tableRows}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user