mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-04-21 07:20:03 -04:00
* (lint) MOB-1063 enforce trailing commas * autofix trailing commas * manually fix newly introduced maxlen violations * add trailing comma convention to i18n build
17 lines
495 B
TypeScript
17 lines
495 B
TypeScript
import useStore from "stores/useStore";
|
|
|
|
// Wraps values from the layout slice with descriptive names
|
|
const selector = state => ( {
|
|
// Vestigial stuff
|
|
obsDetailsTab: state.obsDetailsTab,
|
|
setObsDetailsTab: state.setObsDetailsTab,
|
|
loggedInWhileInDefaultMode: state.loggedInWhileInDefaultMode,
|
|
setLoggedInWhileInDefaultMode: state.setLoggedInWhileInDefaultMode,
|
|
// newer stuff
|
|
...state.layout,
|
|
} );
|
|
|
|
const useLayoutPrefs = ( ) => useStore( selector );
|
|
|
|
export default useLayoutPrefs;
|