fix move note dialog

This commit is contained in:
ammarahm-ed
2020-12-16 20:01:52 +05:00
parent aedcca92b3
commit 22b4a65d75

View File

@@ -137,7 +137,7 @@ const IntComponent = ({close, note, setNote}) => {
newTopicTitle = null; newTopicTitle = null;
}; };
const handlePress = async () => { const handlePress = async (item,index) => {
if ( if (
note?.notebooks?.findIndex( note?.notebooks?.findIndex(
(o) => (o) =>
@@ -398,7 +398,7 @@ const IntComponent = ({close, note, setNote}) => {
} }
renderItem={({item, index}) => ( renderItem={({item, index}) => (
<PressableButton <PressableButton
onPress={handlePress} onPress={() => handlePress(item,index)}
type="gray" type="gray"
customStyle={{ customStyle={{
height: 50, height: 50,