diff --git a/src/components/UI/Sidebar/sidebarButton.tsx b/src/components/UI/Sidebar/sidebarButton.tsx index 5a5efe074..7a4ce2db9 100644 --- a/src/components/UI/Sidebar/sidebarButton.tsx +++ b/src/components/UI/Sidebar/sidebarButton.tsx @@ -6,7 +6,7 @@ export interface SidebarButtonProps { count?: number; active?: boolean; Icon?: LucideIcon; - element?; + children: React.ReactNode; onClick?: () => void; disabled?: boolean; } @@ -16,7 +16,7 @@ export const SidebarButton = ({ active, Icon, count, - element, + children, onClick, disabled = false, }: SidebarButtonProps) => ( @@ -28,8 +28,8 @@ export const SidebarButton = ({ disabled={disabled} > {Icon && } - {element && element} + {children && children} {label} - {count > 0 && !active &&
{count}
} + {count && count > 0 && !active &&
{count}
} ); diff --git a/src/core/subscriptions.ts b/src/core/subscriptions.ts index 279e50583..822efafaa 100644 --- a/src/core/subscriptions.ts +++ b/src/core/subscriptions.ts @@ -1,6 +1,6 @@ import type { Device } from "@core/stores/deviceStore.ts"; import { MeshDevice, Protobuf } from "@meshtastic/core"; -import type { MessageStore } from "@core/stores/messageStore.ts"; +import { MessageType, type MessageStore } from "@core/stores/messageStore.ts"; import PacketToMessageDTO from "@core/dto/PacketToMessageDTO.ts"; export const subscribeAll = (