diff --git a/gui/src/components/WidgetsComponent.tsx b/gui/src/components/WidgetsComponent.tsx
index 495030554..4c1b147aa 100644
--- a/gui/src/components/WidgetsComponent.tsx
+++ b/gui/src/components/WidgetsComponent.tsx
@@ -52,20 +52,20 @@ export function WidgetsComponent() {
return (
<>
-
-
-
+
+
+
+ />
-
+ />
+
{(typeof __ANDROID__ === 'undefined' || !__ANDROID__?.isThere()) && (
)}
diff --git a/gui/src/components/home/ResetButton.tsx b/gui/src/components/home/ResetButton.tsx
index 8fe26aeed..fa8950d43 100644
--- a/gui/src/components/home/ResetButton.tsx
+++ b/gui/src/components/home/ResetButton.tsx
@@ -127,18 +127,21 @@ export function ResetButton({
switch (type) {
case ResetType.Yaw:
return l10n.getString(
- 'reset-yaw' +
- (bodyPartsToReset !== 'default' ? '-' + bodyPartsToReset : '')
+ `reset-yaw${
+ bodyPartsToReset !== 'default' ? `-${bodyPartsToReset}` : ''
+ }`
);
case ResetType.Mounting:
return l10n.getString(
- 'reset-mounting' +
- (bodyPartsToReset !== 'default' ? '-' + bodyPartsToReset : '')
+ `reset-mounting${
+ bodyPartsToReset !== 'default' ? `-${bodyPartsToReset}` : ''
+ }`
);
case ResetType.Full:
return l10n.getString(
- 'reset-full' +
- (bodyPartsToReset !== 'default' ? '-' + bodyPartsToReset : '')
+ `reset-full${
+ bodyPartsToReset !== 'default' ? `-${bodyPartsToReset}` : ''
+ }`
);
}
}, [type, bodyPartsToReset]);
@@ -149,12 +152,13 @@ export function ResetButton({
return ;
case ResetType.Mounting:
switch (bodyPartsToReset) {
- case 'default':
- return ;
case 'feet':
return ;
case 'fingers':
return ;
+ case 'default':
+ default:
+ return ;
}
case ResetType.Full:
return ;
diff --git a/gui/src/hooks/firmware-update.ts b/gui/src/hooks/firmware-update.ts
index 099276003..cc6522b19 100644
--- a/gui/src/hooks/firmware-update.ts
+++ b/gui/src/hooks/firmware-update.ts
@@ -41,11 +41,9 @@ const checkUserCanUpdate = async (url: string, fwVersion: string) => {
);
if (!deployDataJson) return true;
- const deployData = (
- Object.entries(deployDataJson).map(([key, val]) => {
- return [parseFloat(key), new Date(val as string)];
- }) as [number, Date][]
- ).sort(([a], [b]) => a - b);
+ const deployData = Object.entries(deployDataJson)
+ .map<[number, Date]>(([key, val]) => [parseFloat(key), new Date(val as string)])
+ .sort(([a], [b]) => a - b);
if (deployData.find(([key]) => key > 1 || key <= 0)) return false; // values outside boundaries / cancel