refactor(beszel): tighten background color lookup type
This commit is contained in:
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(
|
||||
|
||||
Reference in new issue
Block a user