🚧 wip: site label column filter standardized

This commit is contained in:
Fred KISSIE
2026-06-04 19:40:24 +02:00
parent 4a3c201741
commit 9cff5f66b1
7 changed files with 208 additions and 138 deletions
+3 -3
View File
@@ -26,11 +26,12 @@ export type Selectedsite = Pick<
type SiteOnlineStatusProps = {
type: Selectedsite["type"];
online: Selectedsite["online"];
t: (key: "online" | "offline") => string;
};
/** Dot-only indicator matching `SitesTable` colors (newt/wireguard only; nothing for local or missing status). */
export function SiteOnlineStatus({ type, online, t }: SiteOnlineStatusProps) {
export function SiteOnlineStatus({ type, online }: SiteOnlineStatusProps) {
const t = useTranslations();
if (type !== "newt" && type !== "wireguard") {
return null;
}
@@ -128,7 +129,6 @@ export function SitesSelector({
<SiteOnlineStatus
type={site.type}
online={site.online}
t={t}
/>
)}
</div>