This repository has been archived on 2022-03-12. You can view files and clone it, but cannot push or open issues or pull requests.
Lateinicus/frontend/src/components/SummaryTable.tsx
Alexander Polynomdivision 2f5e572f8e fix: Cosmetic enhancements
2018-09-24 13:58:05 +02:00

39 lines
1.2 KiB
TypeScript

import * as React from "react";
import Table from "@material-ui/core/Table";
import TableHead from "@material-ui/core/TableHead";
import TableBody from "@material-ui/core/TableBody";
import TableRow from "@material-ui/core/TableRow";
import TableCell from "@material-ui/core/TableCell";
import { IReviewMetadata } from "../models/review";
interface IProps {
reviewMeta: IReviewMetadata;
}
export default class SummaryTable extends React.Component<IProps> {
render() {
const { reviewMeta } = this.props;
return <Table>
<TableHead>
<TableRow>
<TableCell>Antworten</TableCell>
<TableCell numeric>Anzahl</TableCell>
</TableRow>
</TableHead>
<TableBody>
<TableRow>
<TableCell>Korrekt</TableCell>
<TableCell numeric>{reviewMeta.correct}</TableCell>
</TableRow>
<TableRow>
<TableCell>Falsch</TableCell>
<TableCell numeric>{reviewMeta.wrong}</TableCell>
</TableRow>
</TableBody>
</Table>;
}
}