Open
Description
Description:
There is a type mismatch in the useColorModes function. The interface for setColorMode is defined as:
interface UseColorModesOutput {
colorMode: string | undefined;
isColorModeSet: () => boolean;
setColorMode: Dispatch<SetStateAction<string>>;
}
However, the correct type should allow setColorMode to handle both string and undefined values. The interface should be updated as follows:
interface UseColorModesOutput {
colorMode: string | undefined
isColorModeSet: () => boolean
setColorMode: Dispatch<SetStateAction<string | undefined>>
}
Metadata
Metadata
Assignees
Labels
No labels