mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-09-17 08:09:10 -04:00
* add debugMode layout state and use for hook * don't return toggle from GP hook * fix four bad isDebugMode calls * fix 6 more bad isDebugMode calls * move non-hook debugMode check to local where it's needed
11 lines
225 B
TypeScript
11 lines
225 B
TypeScript
import useStore from "stores/useStore";
|
|
|
|
const useDebugMode = ( ): { isDebug: boolean } => {
|
|
const isDebug = useStore( state => state.layout.debugModeEnabled );
|
|
return {
|
|
isDebug,
|
|
};
|
|
};
|
|
|
|
export default useDebugMode;
|