refactor(beszel): tighten background color lookup type

This commit is contained in:
Thomas Camlong committed 2026-06-16 15:49:06 +02:00
1 parent 0a05bbed8d
commit 4da2feda35
1 file changed
+1 -1
@@ -356,7 +356,7 @@ export default function BeszelSystemGridWidget({
const board = useRequiredBoard();
const colorScheme = useComputedColorScheme("light");
const opacity = board.opacity / 100;
const bgBase: Record<string, string> = { dark: "57, 57, 57", light: "246, 247, 248" };
const bgBase: Record<"light" | "dark", string> = { dark: "57, 57, 57", light: "246, 247, 248" };
const backgroundColor = `rgba(${bgBase[colorScheme]}, ${opacity})`;
const { data: results = [] } = clientApi.widget.beszel.getSystems.useQuery(