Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

some minor changes

ammarahm-ed6a5cb75b1ee3
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 {
<Text
numberOfLines={1}
style={{
- color: colors.pri,
+ color: colors.heading,
fontSize: SIZE.sm + 1,
fontFamily: WEIGHT.bold,
maxWidth: '100%',
diff --git a/apps/mobile/src/components/SearchInput/index.js b/apps/mobile/src/components/SearchInput/index.js
index d06d9600f..be8a96a3f 100644
--- a/apps/mobile/src/components/SearchInput/index.js
+++ b/apps/mobile/src/components/SearchInput/index.js
@@ -10,16 +10,17 @@ import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {br, WEIGHT, SIZE} from '../../common/common';
import {TextInput, Text} from 'react-native';
const {Value, timing, block} = Animated;
-let offsetY = 0;
+
let searchResult = [];
+
+let offsetY = 0;
let timeoutAnimate = null;
-export const Search = props => {
+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);