mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-07-03 18:06:38 -04:00
json-ld improvements
This commit is contained in:
@ -9,7 +9,7 @@ const useTheme = () => {
|
||||
throw new Error("useTheme must be used inside of a ThemeProvider.");
|
||||
}
|
||||
|
||||
return context;
|
||||
return [context.theme, context.setTheme] as const;
|
||||
};
|
||||
|
||||
export default useTheme;
|
||||
|
Reference in New Issue
Block a user