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:
1 parent
b0bfec7247
commit
21dd44733f
6 files changed
+127
-23
No files matched your search
@@ -1,6 +1,6 @@
|
||||
interface ThemeLabelProps {
|
||||
variant: "light" | "dark" | "system";
|
||||
value?: "light" | "dark" | null;
|
||||
value: "light" | "dark" | "system";
|
||||
label: string;
|
||||
defaultChecked?: boolean;
|
||||
register: any;
|
||||
|
||||
Reference in new issue
Block a user