fix: make theme logic safe and add better e2e tests (#16959)

* fix: improve theme logic

* remove null from ThemeLabelProps value

* add better e2e tests
This commit is contained in:
Benny Joo authored and GitHub committed 2024-10-07 11:23:30 +01:00
1 parent b0bfec7247
commit 21dd44733f
6 files changed
+127 -23

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
interface ThemeLabelProps {
variant: "light" | "dark" | "system";
value?: "light" | "dark" | null;
value: "light" | "dark" | "system";
label: string;
defaultChecked?: boolean;
register: any;