Move install CLI command from dashboard header to settings page

This commit is contained in:
Chris Wanstrath 2026-02-19 10:07:33 -08:00
parent dc1decafec
commit 8e71699ceb
2 changed files with 7 additions and 4 deletions

View File

@ -5,7 +5,6 @@ import {
AppSelectorChevron,
DashboardContainer,
DashboardHeader,
DashboardInstallCmd,
DashboardTitle,
SettingsGear,
StatusDot,
@ -50,9 +49,6 @@ export function DashboardLanding({ render }: { render: () => void }) {
</AppSelectorChevron>
)}
</DashboardTitle>
<DashboardInstallCmd>
curl -fsSL {location.origin}/install | bash
</DashboardInstallCmd>
</DashboardHeader>
<StatusDotsRow>

View File

@ -3,6 +3,7 @@ import { getWifiConfig, saveWifiConfig } from '../api'
import { setCurrentView } from '../state'
import {
Button,
DashboardInstallCmd,
FormActions,
FormField,
FormInput,
@ -52,6 +53,12 @@ export function SettingsPage({ render }: { render: () => void }) {
</HeaderActions>
</MainHeader>
<MainContent>
<Section>
<SectionTitle>Install CLI</SectionTitle>
<DashboardInstallCmd>
curl -fsSL {location.origin}/install | bash
</DashboardInstallCmd>
</Section>
<Section>
<SectionTitle>WiFi</SectionTitle>
<form onSubmit={handleSave} style={{ display: 'flex', flexDirection: 'column', gap: 16, maxWidth: 400 }}>