mirror of
https://github.com/janishutz/fundamentals-of-webengineering.git
synced 2025-11-25 22:04:24 +00:00
Task 3: File Selector
This commit is contained in:
@@ -56,7 +56,7 @@ const DataTable = (props: {data: CSV_Data}) => {
|
||||
<tr key={i}>
|
||||
{
|
||||
header.map( (col) => (
|
||||
<Row col={col} content={row[col] as String}></Row>
|
||||
<Row key={i} col={col} content={row[col] as String}></Row>
|
||||
))
|
||||
}
|
||||
</tr>
|
||||
@@ -84,7 +84,7 @@ const ColHeader = (props: {col: String, sortingHandle: (s: String) => void, isSe
|
||||
);
|
||||
}
|
||||
|
||||
const Row = (props: {col: String, content: String}) => {
|
||||
const Row = (props: {col: String, content: String, key: Key}) => {
|
||||
return <td key={props.col as Key}>{props.content}</td>;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user