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 35 36 | 1x 1x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x 10x | import { Button, Card } from "react-bootstrap";
export default function SignInCard({
url,
Icon,
title,
description,
testid = "default",
onClick,
}) {
//Eslint alias to so that it knows Icon is used
const IconComponent = Icon;
return (
<Card style={{ width: "18rem" }} data-testid={`SignInCard-base-${testid}`}>
<Card.Body
className={"text-center"}
data-testid={`SignInCard-header-${testid}`}
>
<IconComponent />
</Card.Body>
<Card.Body>
<Card.Title>{title}</Card.Title>
<Card.Text>{description}</Card.Text>
<Card.Footer
className={"text-center"}
data-testid={`SignInCard-footer-${testid}`}
>
<Button onClick={onClick} href={url}>
Log In
</Button>
</Card.Footer>
</Card.Body>
</Card>
);
}
|