Skip to content

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

fix tag section ui

ammarahm-ed15416a497af5
diff --git a/apps/mobile/src/components/Menu/TagsSection.js b/apps/mobile/src/components/Menu/TagsSection.js
index 2284df981..872e6ffe4 100644
--- a/apps/mobile/src/components/Menu/TagsSection.js
+++ b/apps/mobile/src/components/Menu/TagsSection.js
@@ -3,7 +3,7 @@ import {FlatList, View} from 'react-native';
import Icon from 'react-native-vector-icons/MaterialCommunityIcons';
import {useTracked} from '../../provider';
import {Actions} from '../../provider/Actions';
-import { useMenuStore, useNoteStore } from '../../provider/stores';
+import {useMenuStore, useNoteStore} from '../../provider/stores';
import {
eSendEvent,
eSubscribeEvent,
@@ -17,13 +17,14 @@ import {normalize, SIZE} from '../../utils/SizeUtils';
import ActionSheetWrapper from '../ActionSheetComponent/ActionSheetWrapper';
import {Button} from '../Button';
import {PressableButton} from '../PressableButton';
+import Seperator from '../Seperator';
import Heading from '../Typography/Heading';
import Paragraph from '../Typography/Paragraph';
export const TagsSection = () => {
const menuPins = useMenuStore(state => state.menuPins);
const loading = useNoteStore(state => state.loading);
- const setMenuPins =useMenuStore(state => state.setMenuPins);
+ const setMenuPins = useMenuStore(state => state.setMenuPins);
useEffect(() => {
if (!loading) {
@@ -31,7 +32,7 @@ export const TagsSection = () => {
}
}, [loading]);
- const onPress = (item) => {
+ const onPress = item => {
let params;
if (item.type === 'notebook') {
params = {
@@ -51,7 +52,7 @@ export const TagsSection = () => {
...item,
type: 'tag',
menu: true,
- get:'tagged'
+ get: 'tagged',
};
Navigation.navigate('NotesPage', params, {
heading: '#' + item.title,
@@ -60,7 +61,7 @@ export const TagsSection = () => {
});
eSendEvent(refreshNotesPage, params);
} else {
- params = {...item, menu: true,get:'topics'};
+ params = {...item, menu: true, get: 'topics'};
Navigation.navigate('NotesPage', params, {
heading: item.title,
id: item.id,
@@ -97,13 +98,13 @@ const PinItem = ({item, index, onPress}) => {
const [state, dispatch] = useTracked();
const {colors} = state;
- const setMenuPins =useMenuStore(state => state.setMenuPins);
-
+ const setMenuPins = useMenuStore(state => state.setMenuPins);
+
const [visible, setVisible] = useState(false);
const [headerTextState, setHeaderTextState] = useState(null);
const color = headerTextState?.id === item.id ? colors.accent : colors.pri;
const fwdRef = useRef();
- const onHeaderStateChange = (event) => {
+ const onHeaderStateChange = event => {
if (event?.id === item.id) {
setHeaderTextState(event);
} else {
@@ -134,6 +135,7 @@ const PinItem = ({item, index, onPress}) => {
gestureEnabled={false}
fwdRef={fwdRef}
visible={true}>
+ <Seperator />
<Button
title="Remove Shortcut"
type="error"