akseljoonas HF Staff commited on
Commit
1826db9
·
1 Parent(s): 831b2ca

fix: remove unused StatusDot and isConnected from sidebar

Browse files
frontend/src/components/SessionSidebar/SessionSidebar.tsx CHANGED
@@ -18,24 +18,10 @@ interface SessionSidebarProps {
18
  onClose?: () => void;
19
  }
20
 
21
- /** Small coloured dot for connection status */
22
- const StatusDot = ({ connected }: { connected: boolean }) => (
23
- <Box
24
- sx={{
25
- width: 6,
26
- height: 6,
27
- borderRadius: '50%',
28
- bgcolor: connected ? 'var(--accent-green)' : 'var(--accent-red)',
29
- boxShadow: connected ? '0 0 4px rgba(76,175,80,0.4)' : 'none',
30
- flexShrink: 0,
31
- }}
32
- />
33
- );
34
-
35
  export default function SessionSidebar({ onClose }: SessionSidebarProps) {
36
  const { sessions, activeSessionId, createSession, deleteSession, switchSession } =
37
  useSessionStore();
38
- const { isConnected, setPlan, clearPanel } =
39
  useAgentStore();
40
  const [isCreatingSession, setIsCreatingSession] = useState(false);
41
  const [capacityError, setCapacityError] = useState<string | null>(null);
 
18
  onClose?: () => void;
19
  }
20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  export default function SessionSidebar({ onClose }: SessionSidebarProps) {
22
  const { sessions, activeSessionId, createSession, deleteSession, switchSession } =
23
  useSessionStore();
24
+ const { setPlan, clearPanel } =
25
  useAgentStore();
26
  const [isCreatingSession, setIsCreatingSession] = useState(false);
27
  const [capacityError, setCapacityError] = useState<string | null>(null);