diff --git a/src/firmware/FlashButton.tsx b/src/firmware/FlashButton.tsx index d988727f..04e580bc 100644 --- a/src/firmware/FlashButton.tsx +++ b/src/firmware/FlashButton.tsx @@ -13,9 +13,9 @@ import { TooltipId } from '../toolbar/i18n'; import { flashFirmware } from './actions'; import firmwareIcon from './firmware.svg'; -type FlashButtonProps = Pick; +type FlashButtonProps = Pick; -const FlashButton: React.VoidFunctionComponent = ({ id }) => { +const FlashButton: React.VoidFunctionComponent = ({ label }) => { const bootloaderConnection = useSelector((s) => s.bootloader.connection); const bleConnection = useSelector((s) => s.ble.connection); const flashing = useSelector((s) => s.firmware.flashing); @@ -27,7 +27,7 @@ const FlashButton: React.VoidFunctionComponent = ({ id }) => { return ( ; +type BluetoothButtonProps = Pick; -const BluetoothButton: React.VoidFunctionComponent = ({ id }) => { +const BluetoothButton: React.VoidFunctionComponent = ({ + label, +}) => { const bootloaderConnection = useSelector((s) => s.bootloader.connection); const bleConnection = useSelector((s) => s.ble.connection); @@ -26,7 +28,7 @@ const BluetoothButton: React.VoidFunctionComponent = ({ id return ( ; +type ReplButtonProps = Pick; const ReplButton: React.VoidFunctionComponent = ({ - id, + label, keyboardShortcut, }) => { const enabled = useSelector((s) => s.hub.runtime === HubRuntimeState.Idle); @@ -22,7 +22,7 @@ const ReplButton: React.VoidFunctionComponent = ({ return ( ; +type RunButtonProps = Pick; const RunButton: React.VoidFunctionComponent = ({ - id, + label, keyboardShortcut, }) => { const downloadProgress = useSelector((s) => s.hub.downloadProgress); @@ -24,7 +24,7 @@ const RunButton: React.VoidFunctionComponent = ({ return ( ; +type StopButtonProps = Pick; const StopButton: React.VoidFunctionComponent = ({ - id, + label, keyboardShortcut, }) => { const runtime = useSelector((s) => s.hub.runtime); @@ -22,7 +22,7 @@ const StopButton: React.VoidFunctionComponent = ({ return ( ; +type SettingsButtonProps = Pick; const SettingsButton: React.VoidFunctionComponent = ({ - id, + label, onAction, }) => { return ( = ({ - id, + label, keyboardShortcut, tooltip, progressTooltip, @@ -110,6 +110,7 @@ const ActionButton: React.VoidFunctionComponent = ({ ...tooltipTargetProps }) => (