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 | 4x 1x 4x | import React from "react";
import { Button, Card } from "react-bootstrap";
export default function CATMETabComponent({ courseId, testIdPrefix }) {
const downloadCatmeCsv = () => {
window.open(`/api/csv/catme?courseId=${courseId}`, "_blank");
};
return (
<div data-testid={`${testIdPrefix}-catme-tab-component`}>
<Card className="mb-3">
<Card.Header>CATME Roster</Card.Header>
<Card.Body>
<p>
Download the course roster as a CSV file in the format CATME
expects for importing students.
</p>
<Button
onClick={downloadCatmeCsv}
data-testid={`${testIdPrefix}-catme-download-csv-button`}
>
Download CSV Roster in CATME format
</Button>
</Card.Body>
</Card>
</div>
);
}
|