Files
iNaturalistReactNative/src/components/Developer/Debug.tsx
Ken-ichi a3a43c4e2c g11n audit (#2189)
* chore: validate and normalize translations in addition to src strings
* fix: globalize lat/lng/acc in LocationPicker
* refactor: extract language picker into component
* refactor: globalized text
* feat: added a script to i18ncli called "checkify" that generates
  localization files prepended with a checkmark to help see strings that are
  not globalized
* fix: localize date formatting (closes #1622)

Closes #2102
2024-09-26 22:33:23 -07:00

17 lines
445 B
TypeScript

// Wrapper around things that should only be visible in debug mode
import { View } from "components/styledComponents";
import React, { PropsWithChildren } from "react";
import { useDebugMode } from "sharedHooks";
const Debug = ( { children }: PropsWithChildren ) => {
const { isDebug } = useDebugMode( );
if ( !isDebug ) return null;
return (
<View className="bg-deeppink">
{children}
</View>
);
};
export default Debug;