diff --git a/src/components/Sidebar/Channels/Channel.tsx b/src/components/Sidebar/Channels/Channel.tsx index 490857c7..68377fcd 100644 --- a/src/components/Sidebar/Channels/Channel.tsx +++ b/src/components/Sidebar/Channels/Channel.tsx @@ -1,6 +1,7 @@ import React from 'react'; import { Disclosure } from '@headlessui/react'; +import { ChevronDownIcon, ChevronRightIcon } from '@heroicons/react/outline'; import { Protobuf } from '@meshtastic/meshtasticjs'; export interface ChannelProps { @@ -12,14 +13,19 @@ const Channel = (props: ChannelProps) => { {({ open }) => ( <> - -
+ +
+ {open ? ( + + ) : ( + + )} {props.channel.index} -{' '} {Protobuf.Channel_Role[props.channel.role]}
-
+

Bandwidth:

diff --git a/src/components/Sidebar/Channels/Index.tsx b/src/components/Sidebar/Channels/Index.tsx index 93334d0a..18f8b09c 100644 --- a/src/components/Sidebar/Channels/Index.tsx +++ b/src/components/Sidebar/Channels/Index.tsx @@ -24,14 +24,14 @@ const Channels = (props: ChannelsProps) => { <>
- + {open ? ( + + ) : ( + + )} + {props.translations.device_channels_title}
- {open ? ( - - ) : ( - - )}
<> diff --git a/src/components/Sidebar/Device/Index.tsx b/src/components/Sidebar/Device/Index.tsx index 7f128730..1d846904 100644 --- a/src/components/Sidebar/Device/Index.tsx +++ b/src/components/Sidebar/Device/Index.tsx @@ -25,18 +25,18 @@ const Device = (props: DeviceProps) => { <>
- + {open ? ( + + ) : ( + + )} + {props.translations.device_settings_title}
- {open ? ( - - ) : ( - - )}
<> -
+
{props.translations.device_region_title}
@@ -79,7 +79,7 @@ const Device = (props: DeviceProps) => {
-
+
{props.translations.device_wifi_ssid}
@@ -91,7 +91,7 @@ const Device = (props: DeviceProps) => { />
-
+
{props.translations.device_wifi_psk}
@@ -102,7 +102,7 @@ const Device = (props: DeviceProps) => { />
-
+
{ diff --git a/src/components/Sidebar/Nodes/Index.tsx b/src/components/Sidebar/Nodes/Index.tsx index 68c48339..5e2453d0 100644 --- a/src/components/Sidebar/Nodes/Index.tsx +++ b/src/components/Sidebar/Nodes/Index.tsx @@ -25,14 +25,14 @@ const Nodes = (props: NodesProps) => { <>
- + {open ? ( + + ) : ( + + )} + {props.translations.nodes_title}
- {open ? ( - - ) : ( - - )}
{props.nodes.length ? ( diff --git a/src/components/Sidebar/Nodes/Node.tsx b/src/components/Sidebar/Nodes/Node.tsx index faa62bd3..ca4287d8 100644 --- a/src/components/Sidebar/Nodes/Node.tsx +++ b/src/components/Sidebar/Nodes/Node.tsx @@ -2,6 +2,8 @@ import React from 'react'; import { Disclosure } from '@headlessui/react'; import { + ChevronDownIcon, + ChevronRightIcon, ClockIcon, DesktopComputerIcon, FlagIcon, @@ -20,18 +22,23 @@ const Node = (props: NodeProps) => { {({ open }) => ( <> - -
+ +
+ {open ? ( + + ) : ( + + )} {props.node.data.num === props.myId ? ( ) : ( - + )} -
{props.node.data.user?.longName}
+ {props.node.data.user?.longName}
-
+

SNR:{' '} {props.node.packet?.rxSnr ? props.node.packet.rxSnr : 'Unknown'} diff --git a/src/components/Sidebar/UI/Index.tsx b/src/components/Sidebar/UI/Index.tsx index 5cd4c03f..12e1d185 100644 --- a/src/components/Sidebar/UI/Index.tsx +++ b/src/components/Sidebar/UI/Index.tsx @@ -25,14 +25,14 @@ const UI = (props: UIProps) => { <>

- + {open ? ( + + ) : ( + + )} + {props.translations.ui_settings_title}
- {open ? ( - - ) : ( - - )} { {({ open }) => ( <> - -
+ +
+ {open ? ( + + ) : ( + + )} {props.translations.language_title}
{props.language === LanguageEnum.ENGLISH ? ( - + ) : props.language === LanguageEnum.JAPANESE ? ( - + + ) : props.language === LanguageEnum.PORTUGUESE ? ( +
) : null}
-
- English +
{ + props.setLanguage(LanguageEnum.ENGLISH); + }} + > + English
-
- Português
+
{ + props.setLanguage(LanguageEnum.PORTUGUESE); + }} + > + Português
-
- 日本語 +
{ + props.setLanguage(LanguageEnum.JAPANESE); + }} + > + 日本語