Skip to content
This repository was archived by the owner on May 4, 2019. It is now read-only.

Commit 8366bc8

Browse files
committed
feat: scoring options rubric table
1 parent 6a17f57 commit 8366bc8

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/Rubric/ScoringOptionsTable.tsx

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import * as React from "react";
2+
import { SmarterAppOptionModel } from "./RubricModels";
3+
4+
export interface ScoringOptionsProps {
5+
options: SmarterAppOptionModel[];
6+
}
7+
8+
// tslint:disable-next-line:variable-name
9+
export const ScoringOptions: React.SFC<ScoringOptionsProps> = props => {
10+
const rowsJSX = props.options.map(o => (
11+
<tr>
12+
<td>{o.name}</td>
13+
<td>{o.feedback}</td>
14+
</tr>
15+
));
16+
17+
return (
18+
<table className="item-data-table">
19+
<thead>
20+
<tr>
21+
<th>Option</th>
22+
<th>Feedback</th>
23+
</tr>
24+
</thead>
25+
<tbody>{rowsJSX}</tbody>
26+
</table>
27+
);
28+
};

0 commit comments

Comments
 (0)