mirror of
https://github.com/fosrl/pangolin.git
synced 2026-07-16 18:46:35 +02:00
🚧 wip: site label column filter standardized
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user