firmware card adjustments

This commit is contained in:
Foster Irwin 2022-11-08 09:00:54 -07:00
parent c5e0ccd9d8
commit 4e8371375f
2 changed files with 20 additions and 16 deletions

View file

@ -27,27 +27,31 @@ export const FirmwareCard = ({
<div className="card__body">
<p>{description}</p>
</div>
<div className="card__footer">
<div className="card__footer mt-auto">
<div className="margin-top--sm">
<details>
<summary>
Older Versions
</summary>
{release.slice(1, 6).map((release) => {
return (
<div key={release.id}>
<a href={release.assets[1]?.browser_download_url}>
{release.tag_name}
</a>
</div>
);
})}
</details>
</div>
{release?.length ? (
<>
<a
href={release[0].assets[1]?.browser_download_url}
className="button button--secondary button--block"
className="button button--secondary button--block margin-top--sm"
>
Download
Download {variant}
</a>
<div className="margin-top--sm">
<h3>Older versions</h3>
{release.slice(1, 6).map((release) => {
return (
<div key={release.id}>
<a href={release.assets[1]?.browser_download_url}>
{release.tag_name}
</a>
</div>
);
})}
</div>
</>
) : (
<button disabled className="button button--secondary button--block">

View file

@ -207,7 +207,7 @@ const Firmware = (): JSX.Element => {
href="https://nightly.link/meshtastic/firmware/workflows/main/master/built.zip"
className="button button--secondary button--block"
>
Download
Download Bleeding
</a>
</div>
</div>