Skip to content

Commit 5557893

Browse files
chore: remove socket connected icon in header
1 parent f5c09b2 commit 5557893

5 files changed

Lines changed: 0 additions & 36 deletions

File tree

src/assets/power.svg

Lines changed: 0 additions & 4 deletions
This file was deleted.

src/assets/power_off_orange.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/assets/power_off_red.svg

Lines changed: 0 additions & 3 deletions
This file was deleted.

src/features/Header/Cluster.tsx

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@ import {
77
} from "../../api/atoms";
88
import { Text, Tooltip, Flex } from "@radix-ui/themes";
99
import 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";
1510
import { ScheduleStrategyEnum } from "../../api/entities";
1611
import { ScheduleStrategyIcon } from "../../components/ScheduleStrategyIcon";
1712
import { 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
);

src/features/Header/cluster.module.css

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,4 @@
2121
font-weight: 700;
2222
margin-bottom: -3px;
2323
}
24-
25-
.ws-status-icon {
26-
height: 12px;
27-
width: 12px;
28-
margin: -1px -2px 0 -2px;
29-
user-select: none;
30-
}
3124
}

0 commit comments

Comments
 (0)