Task 3: File Selector

This commit is contained in:
RobinB27
2025-11-16 18:22:03 +01:00
parent f65cf176f9
commit 5fa2b1f618
12 changed files with 183 additions and 19 deletions

View File

@@ -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>;
}