diff --git a/apps/mobile/src/components/NoteItem/index.js b/apps/mobile/src/components/NoteItem/index.js index 9264fba27..15a09d191 100644 --- a/apps/mobile/src/components/NoteItem/index.js +++ b/apps/mobile/src/components/NoteItem/index.js @@ -114,7 +114,7 @@ export default class NoteItem extends React.Component { { +export const Search = (props) => { const [state, dispatch] = useTracked(); const {colors, searchResults} = state; const [text, setText] = useState(''); const [focus, setFocus] = useState(false); - const [hideHeader, setHideHeader] = useState(false); let searchState = props.root ? state.searchState : state.indSearchState; @@ -45,7 +46,7 @@ export const Search = props => { }).start(); }; - const onScroll = y => { + const onScroll = (y) => { if (searchResults.results.length > 0) return; if (y < 30) { animation(0, 1, 1.5); @@ -112,7 +113,7 @@ export const Search = props => { }; }, []); - const onChangeText = value => { + const onChangeText = (value) => { setText(value); }; const onSubmitEditing = async () => { diff --git a/apps/mobile/src/components/SimpleList/index.js b/apps/mobile/src/components/SimpleList/index.js index 5f455cd3f..7f41d4099 100644 --- a/apps/mobile/src/components/SimpleList/index.js +++ b/apps/mobile/src/components/SimpleList/index.js @@ -48,7 +48,7 @@ const SimpleList = ({ const searchResults = {...state.searchResults}; const [refreshing, setRefreshing] = useState(false); const insets = useSafeArea(); - const _onScroll = event => { + const _onScroll = (event) => { if (!event) return; let y = event.nativeEvent.contentOffset.y; eSendEvent(eScrollEvent, y);