Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 | 3x 73x 73x 4x | import React from "react"; import { Card, Button, Container, Row, Col } from "react-bootstrap"; const CommonsCard = ({ buttonText, buttonLink, commons }) => { const testIdPrefix = "commonsCard"; return ( <Card.Body style={ // Stryker disable next-line all : don't mutation test CSS { fontSize: "20px", borderTop: "1px solid lightgrey" } }> <Container> <Row> <Col sx={4} data-testid={`${testIdPrefix}-id-${commons.id}`}>{commons.id}</Col> <Col sx={4} data-testid={`${testIdPrefix}-name-${commons.id}`}>{commons.name}</Col> {buttonText != null && <Col sm={4}> <Button data-testid={`${testIdPrefix}-button-${buttonText}-${commons.id}`} size="sm" className="mx-4" onClick={() => buttonLink(commons.id)} >{buttonText} </Button> </Col> } </Row> </Container> </Card.Body> ); }; export default CommonsCard; |