From 724f8106b7267d15a573d37f504c75daca7145c1 Mon Sep 17 00:00:00 2001 From: ammarahm-ed Date: Sat, 14 Nov 2020 10:06:41 +0500 Subject: [PATCH] hide pinned button --- .../src/components/SelectionWrapper/index.js | 37 ++++++++++--------- 1 file changed, 19 insertions(+), 18 deletions(-) diff --git a/apps/mobile/src/components/SelectionWrapper/index.js b/apps/mobile/src/components/SelectionWrapper/index.js index 7b8b7ab68..f2d98ee85 100644 --- a/apps/mobile/src/components/SelectionWrapper/index.js +++ b/apps/mobile/src/components/SelectionWrapper/index.js @@ -3,11 +3,12 @@ import {TouchableOpacity, View} from 'react-native'; import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; import {useTracked} from '../../provider'; import {Actions} from '../../provider/Actions'; +import {ToastEvent} from '../../services/EventManager'; import {getElevation} from '../../utils'; +import {COLORS_NOTE} from '../../utils/Colors'; +import {db} from '../../utils/DB'; +import {SIZE} from '../../utils/SizeUtils'; import {PressableButton} from '../PressableButton'; -import {ToastEvent} from "../../services/EventManager"; -import {SIZE} from "../../utils/SizeUtils"; -import {db} from "../../utils/DB"; const SelectionWrapper = ({ children, @@ -15,8 +16,8 @@ const SelectionWrapper = ({ currentEditingNote, index, background, - pinned, onLongPress, + onPress, }) => { const [state, dispatch] = useTracked(); @@ -68,21 +69,19 @@ const SelectionWrapper = ({ return ( - {pinned ? ( + {/* {item.pinned ? ( - ) : null} + ) : null} */}