A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix tags screen
ammarahm-eddd265c979cad
diff --git a/apps/mobile/src/views/Tags/index.js b/apps/mobile/src/views/Tags/index.jsindex f73c56500..7c2eac12d 100644--- a/apps/mobile/src/views/Tags/index.js+++ b/apps/mobile/src/views/Tags/index.js@@ -6,14 +6,13 @@ import SimpleList from '../../components/SimpleList';import {useTracked} from '../../provider';import {Actions} from '../../provider/Actions';import NavigationService from '../../services/Navigation';-import {SIZE, WEIGHT} from "../../utils/SizeUtils";-import {eSendEvent} from "../../services/EventManager";-import {eUpdateSearchState} from "../../utils/Events";+import {SIZE, WEIGHT} from '../../utils/SizeUtils';+import {eSendEvent} from '../../services/EventManager';+import {eUpdateSearchState} from '../../utils/Events';export const Tags = ({route, navigation}) => {const [state, dispatch] = useTracked();- const { tags} = state;-+ const {tags} = state;const onFocus = useCallback(() => {dispatch({@@ -23,17 +22,17 @@ export const Tags = ({route, navigation}) => {dispatch({type: Actions.HEADER_TEXT_STATE,state: {- heading:"Tags",+ heading: 'Tags',},});- eSendEvent(eUpdateSearchState,{+ eSendEvent(eUpdateSearchState, {placeholder: 'Search all tags',data: tags,noSearch: false,type: 'tags',color: null,- })+ });dispatch({type: Actions.TAGS});dispatch({type: Actions.CURRENT_SCREEN,@@ -50,13 +49,13 @@ export const Tags = ({route, navigation}) => {useEffect(() => {if (navigation.isFocused()) {- eSendEvent(eUpdateSearchState,{+ eSendEvent(eUpdateSearchState, {placeholder: 'Search all tags',data: tags,noSearch: false,type: 'tags',color: null,- })+ });}}, [tags]);@@ -86,19 +85,14 @@ const RenderItem = ({item, index}) => {tag: item,});}}- selectedColor={- currentEditingNote === item.dateCreated || pinned- ? colors.accent- : colors.nav- }+ selectedColor={colors.nav}alpha={!colors.night ? -0.02 : 0.02}- opacity={currentEditingNote === item.dateCreated || pinned ? 0.12 : 1}+ opacity={1}customStyle={{paddingHorizontal: 12,height: 80,- flexDirection: 'row',- justifyContent: 'flex-start',- alignItems: 'center',+ justifyContent: 'center',+ alignItems: 'flex-start',borderBottomWidth: 1.5,borderBottomColor: colors.nav,}}>@@ -112,22 +106,23 @@ const RenderItem = ({item, index}) => {style={{color: colors.accent,}}>- #{' '}+ #</Text>{item.title}- {'\n'}- <Text- style={{- fontSize: SIZE.xs,- color: colors.icon,- }}>- {item && item.noteIds.length && item.noteIds.length > 1- ? item.noteIds.length + ' notes'- : item.noteIds.length === 1- ? item.noteIds.length + ' note'- : null}- </Text>+ </Text>+ <Text+ style={{+ fontSize: SIZE.xs,+ color: colors.icon,+ fontFamily: WEIGHT.regular,+ marginTop: 5,+ }}>+ {item && item.noteIds.length && item.noteIds.length > 1+ ? item.noteIds.length + ' notes'+ : item.noteIds.length === 1+ ? item.noteIds.length + ' note'+ : null}</Text></PressableButton>);