feat: add flashing help links for ESP32 and nRF52 in BuildDownloadButton and ProfileFlash components

This commit is contained in:
Ben Allfree
2025-12-04 14:20:23 -08:00
parent 780f20ed60
commit dde7b813b1
2 changed files with 43 additions and 0 deletions

View File

@@ -69,6 +69,28 @@ export function BuildDownloadButton({
>
Download {type === ArtifactType.Firmware ? 'firmware' : 'source'}
</Button>
{type === ArtifactType.Firmware && (
<p className="text-xs text-slate-400 text-center">
Need help flashing?{' '}
<a
href="https://github.com/MeshEnvy/mesh-forge/discussions/5"
target="_blank"
rel="noopener noreferrer"
className="text-cyan-400 hover:text-cyan-300 underline"
>
ESP32
</a>
{' '}and{' '}
<a
href="https://github.com/MeshEnvy/mesh-forge/discussions/6"
target="_blank"
rel="noopener noreferrer"
className="text-cyan-400 hover:text-cyan-300 underline"
>
nRF52
</a>
</p>
)}
{error && <p className="text-sm text-red-400">{error}</p>}
</div>
)

View File

@@ -241,6 +241,27 @@ export default function ProfileFlash() {
>
Download Firmware
</Button>
<p className="text-xs text-slate-400 text-center">
Need help flashing?{' '}
<a
href="https://github.com/MeshEnvy/mesh-forge/discussions/5"
target="_blank"
rel="noopener noreferrer"
className="text-cyan-400 hover:text-cyan-300 underline"
>
[ESP32]
</a>
{' '}and{' '}
<a
href="https://github.com/MeshEnvy/mesh-forge/discussions/6"
target="_blank"
rel="noopener noreferrer"
className="text-cyan-400 hover:text-cyan-300 underline"
>
[nRF52]
</a>
{' '}guides
</p>
</div>
)}