From b73d4869ccc5220e8238368dba3fc8969b82b9b0 Mon Sep 17 00:00:00 2001 From: Doug Martin Date: Mon, 8 Jul 2024 14:17:54 -0400 Subject: [PATCH] fix: Added missing disconnect icon [PT-187736835] --- src/mobile-app/components/sensor.tsx | 2 +- src/shared/components/icon.tsx | 4 +++- src/shared/icons/sensor-disconnect.svg | 3 +++ 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 src/shared/icons/sensor-disconnect.svg diff --git a/src/mobile-app/components/sensor.tsx b/src/mobile-app/components/sensor.tsx index 4b8aec1..33344a4 100644 --- a/src/mobile-app/components/sensor.tsx +++ b/src/mobile-app/components/sensor.tsx @@ -223,7 +223,7 @@ export const SensorComponent: React.FC = ({sensor, manual {manualEntryMode && canSwitchModes ? Sensor Mode : <> - {connected ? Disconnect : Connect} + {connected ? Disconnect : Connect} {canSwitchModes ? Edit Mode : undefined} } diff --git a/src/shared/components/icon.tsx b/src/shared/components/icon.tsx index 4155b3f..51cfe55 100644 --- a/src/shared/components/icon.tsx +++ b/src/shared/components/icon.tsx @@ -22,6 +22,7 @@ import ReRecordDataTrial from "../icons/re-record-data-trial.svg"; import StopDataTrial from "../icons/stop-data-trial.svg"; import DeleteDataTrial from "../icons/delete-data-trial.svg"; import More from "../icons/more-button.svg"; +import Disconnect from "../icons/sensor-disconnect.svg" const Icons = { label: Label, @@ -46,7 +47,8 @@ const Icons = { reRecordDataTrial: ReRecordDataTrial, stopDataTrial: StopDataTrial, deleteDataTrial: DeleteDataTrial, - more: More + more: More, + disconnect: Disconnect }; export type IconName = keyof typeof Icons; diff --git a/src/shared/icons/sensor-disconnect.svg b/src/shared/icons/sensor-disconnect.svg new file mode 100644 index 0000000..5365b83 --- /dev/null +++ b/src/shared/icons/sensor-disconnect.svg @@ -0,0 +1,3 @@ + + +