fix: added missing imports
This commit is contained in:
@@ -6,7 +6,7 @@ export interface SidebarButtonProps {
|
|||||||
count?: number;
|
count?: number;
|
||||||
active?: boolean;
|
active?: boolean;
|
||||||
Icon?: LucideIcon;
|
Icon?: LucideIcon;
|
||||||
element?;
|
children: React.ReactNode;
|
||||||
onClick?: () => void;
|
onClick?: () => void;
|
||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
}
|
}
|
||||||
@@ -16,7 +16,7 @@ export const SidebarButton = ({
|
|||||||
active,
|
active,
|
||||||
Icon,
|
Icon,
|
||||||
count,
|
count,
|
||||||
element,
|
children,
|
||||||
onClick,
|
onClick,
|
||||||
disabled = false,
|
disabled = false,
|
||||||
}: SidebarButtonProps) => (
|
}: SidebarButtonProps) => (
|
||||||
@@ -28,8 +28,8 @@ export const SidebarButton = ({
|
|||||||
disabled={disabled}
|
disabled={disabled}
|
||||||
>
|
>
|
||||||
{Icon && <Icon size={16} />}
|
{Icon && <Icon size={16} />}
|
||||||
{element && element}
|
{children && children}
|
||||||
<span className="flex flex-1 justify-start shrink-0">{label}</span>
|
<span className="flex flex-1 justify-start shrink-0">{label}</span>
|
||||||
{count > 0 && !active && <div className="justify-end text-white rounded-[20%] px-[2%] bg-[rgb(195,0,0)]">{count}</div>}
|
{count && count > 0 && !active && <div className="justify-end text-white rounded-[20%] px-[2%] bg-[rgb(195,0,0)]">{count}</div>}
|
||||||
</Button>
|
</Button>
|
||||||
);
|
);
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import type { Device } from "@core/stores/deviceStore.ts";
|
import type { Device } from "@core/stores/deviceStore.ts";
|
||||||
import { MeshDevice, Protobuf } from "@meshtastic/core";
|
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";
|
import PacketToMessageDTO from "@core/dto/PacketToMessageDTO.ts";
|
||||||
|
|
||||||
export const subscribeAll = (
|
export const subscribeAll = (
|
||||||
|
|||||||
Reference in New Issue
Block a user