Skip to content

Instantly share code, notes, and snippets.

@pysoftware
Created September 14, 2020 17:50
Show Gist options
  • Save pysoftware/b9c58f8a268f2c8683c20be620b9d91d to your computer and use it in GitHub Desktop.
Save pysoftware/b9c58f8a268f2c8683c20be620b9d91d to your computer and use it in GitHub Desktop.
<Table lang='ru'>
<Table.Body data-test-id="Тело таблицы">
<Context>
{({
open,
openLot
}) => sectorAgreement.length ?
sectorAgreement.map(({
id,
mrgBidId,
registryNumber,
customerName,
name,
methodOfSupplier,
nmc,
jointAuction,
topKpgzValue,
spgzValue,
acceptedByGrbsDate
}, index) => (
<Table.Body.Row
data-test-id={`Строка номер ${index + 1}`}
key={id}>
<Table.Body.Row.Cell>
<Checkbox
data-test-id="Выделить строку"
value={selectedIds.includes(id)}
onChange={() => selectSectorAgreement(id, mrgBidId)} />
</Table.Body.Row.Cell>
<Table.Body.Row.Cell>
<Checkbox
data-test-id="Выделить строку"
value={selectedIds.includes(id)}
onChange={() => selectSectorAgreement(id, mrgBidId)} />
</Table.Body.Row.Cell>
<Table.Body.Row.Cell>
<Checkbox
data-test-id="Выделить строку"
value={selectedIds.includes(id)}
onChange={() => selectSectorAgreement(id, mrgBidId)} />
</Table.Body.Row.Cell>
<Table.Body.Row.Cell>
<Checkbox
data-test-id="Выделить строку"
value={selectedIds.includes(id)}
onChange={() => selectSectorAgreement(id, mrgBidId)} />
</Table.Body.Row.Cell>
<Table.Body.Row.Cell>
<Checkbox
data-test-id="Выделить строку"
value={selectedIds.includes(id)}
onChange={() => selectSectorAgreement(id, mrgBidId)} />
</Table.Body.Row.Cell>
<Table.Body.Row.Cell>
<Checkbox
data-test-id="Выделить строку"
value={selectedIds.includes(id)}
onChange={() => selectSectorAgreement(id, mrgBidId)} />
</Table.Body.Row.Cell>
<Table.Body.Row.Cell>
<Checkbox
data-test-id="Выделить строку"
value={selectedIds.includes(id)}
onChange={() => selectSectorAgreement(id, mrgBidId)} />
</Table.Body.Row.Cell>
</Table.Body.Row>
)) : (
<div className={classes.placeholder}>
Ничего не найдено
</div>
)}
</Context>
</Table.Body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment