mirror of
https://github.com/meshtastic/meshtastic.git
synced 2024-11-10 15:44:18 -08:00
Merge pull request #415 from sigmahour/master
Added fdroid repo badge to downloads page
This commit is contained in:
commit
f7159eca91
|
@ -4,6 +4,8 @@ export interface downloadCardProps {
|
|||
client: string;
|
||||
imgUrl: string;
|
||||
url: string;
|
||||
imgUrl2: string;
|
||||
url2: string;
|
||||
notes: string;
|
||||
buttonText: string;
|
||||
}
|
||||
|
@ -12,6 +14,8 @@ export const DownloadCard = ({
|
|||
client,
|
||||
imgUrl,
|
||||
url,
|
||||
imgUrl2,
|
||||
url2,
|
||||
notes,
|
||||
buttonText,
|
||||
}: downloadCardProps): JSX.Element => {
|
||||
|
@ -32,9 +36,14 @@ export const DownloadCard = ({
|
|||
{buttonText}
|
||||
</a>
|
||||
) : (
|
||||
<div>
|
||||
<a href={url}>
|
||||
<img style={{ height: '4rem' }} src={imgUrl}></img>
|
||||
</a>
|
||||
<a href={url2}>
|
||||
<img style={{ height: '4rem' }} src={imgUrl2}></img>
|
||||
</a>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
<div className="card__footer">{notes ? notes : null}</div>
|
||||
|
|
|
@ -70,8 +70,10 @@ const Firmware = (): JSX.Element => {
|
|||
>
|
||||
<DownloadCard
|
||||
client="Android"
|
||||
imgUrl="https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png"
|
||||
url="https://play.google.com/store/apps/details?id=com.geeksville.mesh&referrer=utm_source=downloads-page"
|
||||
imgUrl="https://f-droid.org/badge/get-it-on.png"
|
||||
url="https://mesh.tastic.app/fdroid/repo"
|
||||
imgUrl2="https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png"
|
||||
url2="https://play.google.com/store/apps/details?id=com.geeksville.mesh&referrer=utm_source=downloads-page"
|
||||
notes={[
|
||||
'To sideload, ',
|
||||
<a
|
||||
|
|
Loading…
Reference in a new issue