From 67f05a580de1021dd4ded51fee27f89061860649 Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Thu, 15 Dec 2022 20:12:38 +0100 Subject: [PATCH] firmware/bootloaderInstructions: Pass flashButtonText directly. --- .../bootloaderInstructions/BootloaderInstructions.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/firmware/bootloaderInstructions/BootloaderInstructions.tsx b/src/firmware/bootloaderInstructions/BootloaderInstructions.tsx index b89c08a2..f6175288 100644 --- a/src/firmware/bootloaderInstructions/BootloaderInstructions.tsx +++ b/src/firmware/bootloaderInstructions/BootloaderInstructions.tsx @@ -102,7 +102,7 @@ const BootloaderInstructions: React.VoidFunctionComponent< > = ({ hubType, recovery, flashButtonText }) => { const i18n = useI18n(); - const { button, light, lightPattern, flashButton } = useMemo(() => { + const { button, light, lightPattern } = useMemo(() => { return { button: i18n.translate( hubHasBluetoothButton(hubType) ? 'button.bluetooth' : 'button.power', @@ -115,7 +115,6 @@ const BootloaderInstructions: React.VoidFunctionComponent< ? 'lightPattern.bluetooth' : 'lightPattern.status', ), - flashButton: flashButtonText, }; }, [i18n, hubType]); @@ -325,7 +324,7 @@ const BootloaderInstructions: React.VoidFunctionComponent<
  1. {i18n.translate('connect.clickConnectAndFlash', { - flashButton: {flashButton}, + flashButton: {flashButtonText}, })}