Skip to content

Commit

Permalink
mapped over mat files and reverted .env file
Browse files Browse the repository at this point in the history
  • Loading branch information
kaisernarkotic committed Nov 18, 2024
1 parent a17a5f1 commit 79ccf5f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VITE_API_URL=https://data.hytechracing.wiki
VITE_API_URL=api-url:port
18 changes: 7 additions & 11 deletions src/components/PreviewCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -111,17 +111,13 @@ function PreviewCard({ selectedData }: PreviewCardProps) {
signedUrl={item.signed_url ?? null}
/>
))}
{/*<DownloadButton
buttonText="MCAP"
//One file for now -- can make it dynamically read several files at a time
fileName={selectedData.mcap_files[0].file_name}
signedUrl={selectedData.mcap_files[0].signed_url ?? null}
/>*/}
<DownloadButton
buttonText="MAT"
fileName={selectedData.mat_files[0].file_name}
signedUrl={selectedData.mat_files[0].signed_url}
/>
{selectedData.mat_files.map((item) => (
<DownloadButton
buttonText="MAT"
fileName={item.file_name}
signedUrl={item.signed_url}
/>
))}
</div>
</>
) : (
Expand Down

0 comments on commit 79ccf5f

Please sign in to comment.