@@ -5,7 +5,7 @@ import { useTranslation } from "react-i18next";
55import store2 from "store2" ;
66import { useShallow } from "zustand/react/shallow" ;
77import { PERMIT_JOIN_TIME_KEY } from "../localStoreConsts.js" ;
8- import { API_NAMES , API_URLS , MULTI_INSTANCE , useAppStore } from "../store.js" ;
8+ import { API_URLS , useAppStore } from "../store.js" ;
99import type { Device } from "../types.js" ;
1010import { sendMessage } from "../websocket/WebSocketManager.js" ;
1111import Button from "./Button.js" ;
@@ -38,7 +38,6 @@ const PermitJoinDropdown = memo(({ selectedRouter, setSelectedRouter }: PermitJo
3838 setSelectedRouter ( [ sourceIdx , device ] ) ;
3939 }
4040 } }
41- title = { MULTI_INSTANCE ? `${ API_NAMES [ sourceIdx ] } - ${ device . friendly_name } ` : device . friendly_name }
4241 >
4342 < span
4443 className = { `dropdown-item${ selectedRouter [ 0 ] === sourceIdx && selectedRouter [ 1 ] ?. ieee_address === device . ieee_address ? " menu-active" : "" } ` }
@@ -65,7 +64,6 @@ const PermitJoinDropdown = memo(({ selectedRouter, setSelectedRouter }: PermitJo
6564 setSelectedRouter ( [ sourceIdx , undefined ] ) ;
6665 }
6766 } }
68- title = { MULTI_INSTANCE ? `${ API_NAMES [ sourceIdx ] } - ${ t ( ( $ ) => $ . all ) } ` : t ( ( $ ) => $ . all ) }
6967 >
7068 < span className = { `dropdown-item${ selectedRouter [ 0 ] === sourceIdx && selectedRouter [ 1 ] === undefined ? " menu-active" : "" } ` } >
7169 < SourceDot idx = { sourceIdx } autoHide namePostfix = " - " />
@@ -81,7 +79,7 @@ const PermitJoinDropdown = memo(({ selectedRouter, setSelectedRouter }: PermitJo
8179 return (
8280 < DialogDropdown
8381 buttonChildren = {
84- < span title = { t ( ( $ ) => $ . toggle_dropdown ) } >
82+ < span className = "tooltip tooltip-right" data-tip = { t ( ( $ ) => $ . toggle_dropdown ) } >
8583 < FontAwesomeIcon icon = { faAngleDown } />
8684 </ span >
8785 }
0 commit comments