Skip to content

Commit

Permalink
Fixing pr
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasmine Yuen committed Jan 8, 2025
1 parent e148262 commit 5bce935
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VITE_API_URL=api-url:port
VITE_API_URL=https://hytechracing.duckdns.org
20 changes: 8 additions & 12 deletions src/components/DataTable.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,31 +56,27 @@ export default function DataTable({
onClick={() => setPreviewData(file)}
bg={selectedRow === file.id ? theme.primaryColor : ""}
>
<Table.Td>
<Table.Td style={{ paddingLeft: "50px" }}>
{getFileNameWithoutExtension(file.mcap_files[0].file_name)}
</Table.Td>
<Table.Td>{file.date}</Table.Td>
<Table.Td>{file.location}</Table.Td>

{/* Change back to notes once notes field is implemented in the server */}
{/* <Table.Td>{file.car_model}</Table.Td> */}
<Table.Td>
<Table.Td style={{ paddingRight: "50px" }}>
<Input.Wrapper>
<Textarea
variant="unstyled"
value="
testing long text text text text text text text text text text text text text text text text text text text text text text"
// now with four rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows"
// now with four rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows"
// now with four rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows rows"
value={file.notes}
style={{ whiteSpace: "normal", wordWrap: "break-word" }}
readOnly
placeholder="Note"
rows={4}
placeholder="No Note Available"
minRows={1}
maxRows={4}
/>
</Input.Wrapper>
</Table.Td>

</Table.Tr>
))
);
Expand All @@ -97,10 +93,10 @@ export default function DataTable({
>
<Table.Thead bg={"#D1BF80"}>
<Table.Tr>
<Table.Th>Name</Table.Th>
<Table.Th style={{ paddingLeft: "50px" }}>Name</Table.Th>
<Table.Th>Date</Table.Th>
<Table.Th>Location</Table.Th>
<Table.Th>Notes</Table.Th>
<Table.Th style={{ paddingRight: "50px" }}>Notes</Table.Th>
</Table.Tr>
</Table.Thead>
<Table.Tbody>{rows}</Table.Tbody>
Expand Down

0 comments on commit 5bce935

Please sign in to comment.