Skip to content

Commit

Permalink
Change all calls
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierfacq committed Nov 20, 2024
1 parent 2a448f0 commit 64dae30
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 12 deletions.
2 changes: 1 addition & 1 deletion src/components/MarketplaceDownloadTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const BinaryTable = ({ checksum, link, filename, os, arch, pkgType, javaVersion,
<td>
{checksum
? <a href="" data-bs-toggle="modal" data-bs-target="#checksumModal" data-bs-checksum={checksum}><Trans>Checksum</Trans> (SHA256)</a>
: <Trans>No Checksum</Trans>
: <></>

Check warning on line 117 in src/components/MarketplaceDownloadTable/index.tsx

View check run for this annotation

Codecov / codecov/patch

src/components/MarketplaceDownloadTable/index.tsx#L117

Added line #L117 was not covered by tests
}
</td>
</tr>
Expand Down
11 changes: 7 additions & 4 deletions src/components/TemurinArchiveTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,9 @@ const TemurinArchiveTable = ({results, updatePage}) => {
}
</td>
<td style={{paddingRight: "20px"}}>
{asset.installer_link ? (
<a href="" data-bs-toggle="modal" data-bs-target="#checksumModal" data-bs-checksum={asset.installer_checksum}><Trans>Checksum</Trans></a>
): <></>
{asset.installer_link && asset.installer_checksum
? <a href="" data-bs-toggle="modal" data-bs-target="#checksumModal" data-bs-checksum={asset.installer_checksum}><Trans>Checksum</Trans></a>
: <></>
}
</td>
<td style={{borderLeft: "1px solid rgb(221, 221, 221)", paddingLeft: "20px"}}>
Expand All @@ -105,7 +105,10 @@ const TemurinArchiveTable = ({results, updatePage}) => {
/>
</td>
<td>
<a href="" data-bs-toggle="modal" data-bs-target="#checksumModal" data-bs-checksum={asset.checksum}><Trans>Checksum</Trans></a>
{asset.checksum
? <a href="" data-bs-toggle="modal" data-bs-target="#checksumModal" data-bs-checksum={asset.checksum}><Trans>Checksum</Trans></a>
: <></>

Check warning on line 110 in src/components/TemurinArchiveTable/index.tsx

View check run for this annotation

Codecov / codecov/patch

src/components/TemurinArchiveTable/index.tsx#L110

Added line #L110 was not covered by tests
}
</td>
</tr>
)
Expand Down
10 changes: 4 additions & 6 deletions src/components/TemurinDownloadTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -115,12 +115,10 @@ const BinaryTable = ({ checksum, link, extension, type, size, os, arch, version
<tr>
<td>
<span className="fw-light">
<a href=""
data-bs-toggle="modal"
data-bs-target="#checksumModal"
data-bs-checksum={checksum}>
<small><Trans>Checksum</Trans></small>
</a>
{checksum
? <a href="" data-bs-toggle="modal" data-bs-target="#checksumModal" data-bs-checksum={checksum}><small><Trans>Checksum</Trans></small></a>
: <></>

Check warning on line 120 in src/components/TemurinDownloadTable/index.tsx

View check run for this annotation

Codecov / codecov/patch

src/components/TemurinDownloadTable/index.tsx#L120

Added line #L120 was not covered by tests
}
</span>
</td>
</tr>
Expand Down
7 changes: 6 additions & 1 deletion src/components/TemurinNightlyTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,12 @@ const TemurinNightlyTable = ({results}) => {
) :
<td><Trans i18nKey='download.not.available' defaults='Not Available' /></td>
}
<td><a href="" data-bs-toggle="modal" data-bs-target="#checksumModal" data-bs-checksum={asset.checksum}><Trans>Checksum</Trans></a></td>
<td>
{asset.checksum
? <a href="" data-bs-toggle="modal" data-bs-target="#checksumModal" data-bs-checksum={asset.checksum}><Trans>Checksum</Trans></a>
: <></>

Check warning on line 53 in src/components/TemurinNightlyTable/index.tsx

View check run for this annotation

Codecov / codecov/patch

src/components/TemurinNightlyTable/index.tsx#L53

Added line #L53 was not covered by tests
}
</td>
</tr>
)
)
Expand Down

0 comments on commit 64dae30

Please sign in to comment.