@@ -7,11 +7,6 @@ import {
77} from "../../api/atoms" ;
88import { Text , Tooltip , Flex } from "@radix-ui/themes" ;
99import styles from "./cluster.module.css" ;
10- import connectedIcon from "../../assets/power.svg" ;
11- import reconnectingIcon from "../../assets/power_off_orange.svg" ;
12- import disconnectedIcon from "../../assets/power_off_red.svg" ;
13- import { socketStateAtom } from "../../api/ws/atoms" ;
14- import { SocketState } from "../../api/ws/types" ;
1510import { ScheduleStrategyEnum } from "../../api/entities" ;
1611import { ScheduleStrategyIcon } from "../../components/ScheduleStrategyIcon" ;
1712import { clusterIndicatorHeight , slotsListWidth } from "../../consts" ;
@@ -24,17 +19,9 @@ export function Cluster() {
2419 const cluster = useAtomValue ( clusterAtom ) ;
2520 const version = useAtomValue ( versionAtom ) ;
2621 const commitHash = useAtomValue ( commitHashAtom ) ;
27- const socketState = useAtomValue ( socketStateAtom ) ;
2822
2923 if ( ! cluster && ! version ) return null ;
3024
31- let icon = disconnectedIcon ;
32- if ( socketState === SocketState . Connected ) {
33- icon = connectedIcon ;
34- } else if ( socketState === SocketState . Connecting ) {
35- icon = reconnectingIcon ;
36- }
37-
3825 let clusterText : string | undefined = cluster ;
3926 if ( cluster === "mainnet-beta" ) {
4027 clusterText = "mainnet" ;
@@ -66,12 +53,6 @@ export function Cluster() {
6653 </ Tooltip >
6754 </ Flex >
6855
69- < Tooltip
70- content = { `GUI is currently ${ socketState } ${ socketState === SocketState . Disconnected ? "from" : "to" } the validator` }
71- >
72- < img src = { icon } className = { styles . wsStatusIcon } alt = "ws status" />
73- </ Tooltip >
74-
7556 < StrategyIcon />
7657 </ Flex >
7758 ) ;
0 commit comments