Skip to content

Commit

Permalink
fix: Added missing disconnect icon [PT-187736835]
Browse files Browse the repository at this point in the history
  • Loading branch information
dougmartin committed Jul 8, 2024
1 parent 1c612d3 commit b73d486
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/mobile-app/components/sensor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export const SensorComponent: React.FC<ISensorComponentProps> = ({sensor, manual
{manualEntryMode && canSwitchModes
? <MenuItemComponent disabled={inputDisabled} onClick={setSensorMode} icon="sensor">Sensor Mode</MenuItemComponent>
: <>
{connected ? <MenuItemComponent disabled={inputDisabled} onClick={disconnect}>Disconnect</MenuItemComponent> : <MenuItemComponent icon="settings_input_antenna" disabled={inputDisabled} onClick={connect}>Connect</MenuItemComponent>}
{connected ? <MenuItemComponent disabled={inputDisabled} onClick={disconnect} icon="disconnect">Disconnect</MenuItemComponent> : <MenuItemComponent icon="settings_input_antenna" disabled={inputDisabled} onClick={connect}>Connect</MenuItemComponent>}
{canSwitchModes ? <MenuItemComponent disabled={inputDisabled} onClick={setEditMode} icon="create">Edit Mode</MenuItemComponent> : undefined}
</>}
</MenuComponent>
Expand Down
4 changes: 3 additions & 1 deletion src/shared/components/icon.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -46,7 +47,8 @@ const Icons = {
reRecordDataTrial: ReRecordDataTrial,
stopDataTrial: StopDataTrial,
deleteDataTrial: DeleteDataTrial,
more: More
more: More,
disconnect: Disconnect
};
export type IconName = keyof typeof Icons;

Expand Down
3 changes: 3 additions & 0 deletions src/shared/icons/sensor-disconnect.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b73d486

Please sign in to comment.