Skip to content

Commit dec01d1

Browse files
committed
fix: colors
1 parent 29bc31b commit dec01d1

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/containers/Cluster/ClusterOverview/components/BridgeInfoTable.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,14 @@ function getBridgePileStateTheme(state?: string): NonNullable<LabelProps['theme'
2121

2222
switch (state.toUpperCase()) {
2323
case BridgePileState.PRIMARY:
24-
return 'success'; // Green - active primary
2524
case BridgePileState.PROMOTE:
26-
return 'warning'; // Orange - transitioning to primary
2725
case BridgePileState.SYNCHRONIZED:
28-
return 'info'; // Blue - ready but not primary
26+
return 'success'; // Green - healthy states
2927
case BridgePileState.NOT_SYNCHRONIZED:
30-
return 'danger'; // Red - problematic state
28+
return 'warning'; // Yellow - needs attention
3129
case BridgePileState.SUSPENDED:
32-
return 'utility'; // Gray - graceful shutdown
3330
case BridgePileState.DISCONNECTED:
34-
return 'danger'; // Red - connectivity issue
31+
return 'danger'; // Red - critical states
3532
case BridgePileState.UNSPECIFIED:
3633
default:
3734
return 'unknown'; // Purple - unknown state

0 commit comments

Comments
 (0)