1
1
import React from 'react' ;
2
2
3
3
import {
4
- FaBatteryHalf ,
5
- FaClock ,
6
- FaCrown ,
7
- FaDesktop ,
8
- FaMapMarkerAlt ,
9
- FaMountain ,
10
- FaUsers ,
11
- } from 'react-icons/fa' ;
12
-
4
+ ClockIcon ,
5
+ DesktopComputerIcon ,
6
+ FlagIcon ,
7
+ GlobeIcon ,
8
+ LightningBoltIcon ,
9
+ UsersIcon ,
10
+ } from '@heroicons/react/outline' ;
13
11
import type { Types } from '@meshtastic/meshtasticjs' ;
14
12
15
13
import type { languageTemplate } from '../../App' ;
@@ -30,7 +28,7 @@ const SidebarNodes = (props: sidebarNodesProps) => {
30
28
isNested = { false }
31
29
titleContent = {
32
30
< div className = "flex" >
33
- < FaUsers className = "my-auto mr-2" />
31
+ < UsersIcon className = "my-auto mr-2 w-5 h-5 " />
34
32
{ props . Translations . nodes_title }
35
33
< div className = "flex m-auto rounded-full bg-gray-300 w-6 h-6 text-sm ml-2" >
36
34
< div className = "m-auto" > { props . Nodes . length ?? 0 } </ div >
@@ -49,9 +47,9 @@ const SidebarNodes = (props: sidebarNodesProps) => {
49
47
titleContent = {
50
48
< div key = { index } className = "flex" >
51
49
{ node . data . num === props . myId ? (
52
- < FaCrown className = "text-yellow-500 my-auto mr-2" />
50
+ < FlagIcon className = "text-yellow-500 my-auto mr-2 w-5 h-5 " />
53
51
) : (
54
- < FaDesktop className = "my-auto mr-2" />
52
+ < DesktopComputerIcon className = "my-auto mr-2 w-5 h-5 " />
55
53
) }
56
54
< div className = "m-auto" > { node . data . user ?. longName } </ div >
57
55
</ div >
@@ -80,24 +78,24 @@ const SidebarNodes = (props: sidebarNodesProps) => {
80
78
{ }
81
79
</ p >
82
80
< div className = "flex" >
83
- < FaMapMarkerAlt className = "my-auto mr-2" />
81
+ < GlobeIcon className = "my-auto mr-2 w-5 h-5 " />
84
82
< p >
85
83
{ node . data . position ?. latitudeI } ,
86
84
{ node . data . position ?. longitudeI }
87
85
</ p >
88
86
</ div >
89
87
90
88
< div className = "flex" >
91
- < FaMountain className = "my-auto mr-2" />
89
+ < GlobeIcon className = "my-auto mr-2 w-5 h-5 " />
92
90
< p > { node . data . position ?. altitude } </ p >
93
91
</ div >
94
92
95
93
< div className = "flex" >
96
- < FaClock className = "my-auto mr-2" />
94
+ < ClockIcon className = "my-auto mr-2 w-5 h-5 " />
97
95
< p > { node . data . position ?. time } </ p >
98
96
</ div >
99
97
< div className = "flex" >
100
- < FaBatteryHalf className = "my-auto mr-2" />
98
+ < LightningBoltIcon className = "my-auto mr-2 w-5 h-5 " />
101
99
< p > { node . data . position ?. batteryLevel } </ p >
102
100
</ div >
103
101
</ div >
0 commit comments