mirror of
https://github.com/meshtastic/meshtastic.git
synced 2025-01-30 07:10:51 -08:00
firmware card adjustments
This commit is contained in:
parent
c5e0ccd9d8
commit
4e8371375f
|
@ -27,27 +27,31 @@ export const FirmwareCard = ({
|
||||||
<div className="card__body">
|
<div className="card__body">
|
||||||
<p>{description}</p>
|
<p>{description}</p>
|
||||||
</div>
|
</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 ? (
|
{release?.length ? (
|
||||||
<>
|
<>
|
||||||
<a
|
<a
|
||||||
href={release[0].assets[1]?.browser_download_url}
|
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>
|
</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">
|
<button disabled className="button button--secondary button--block">
|
||||||
|
|
|
@ -207,7 +207,7 @@ const Firmware = (): JSX.Element => {
|
||||||
href="https://nightly.link/meshtastic/firmware/workflows/main/master/built.zip"
|
href="https://nightly.link/meshtastic/firmware/workflows/main/master/built.zip"
|
||||||
className="button button--secondary button--block"
|
className="button button--secondary button--block"
|
||||||
>
|
>
|
||||||
Download
|
Download Bleeding
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue