removed some comments

This commit is contained in:
Sadaqat Ali 2022-03-18 15:21:20 +05:00
parent 7f91293a39
commit 76214249ea
2 changed files with 0 additions and 4 deletions

View File

@ -115,7 +115,6 @@ export const InsertLinkModal = forwardRef(
onPress={() => {
setSelectedUrlType(item.id);
if (item.id === 0) {
urlInputRef.current?.blur();
labelInputRef.current?.focus();
} else {
labelInputRef.current?.blur();
@ -142,7 +141,6 @@ export const InsertLinkModal = forwardRef(
placeholderTextColor="#c1c5c7"
autoCapitalize="none"
innerRef={labelInputRef}
autoFocus
/>
</>
);

View File

@ -4,7 +4,6 @@ export const writeUrlTextHere = 'https://example.com';
export const writeTextHereString = 'Text here';
export default async ({ text, selection, setTextAndSelection, item, isImage = null }) => {
console.log('text, selection, item, isImage : ', text, selection, item, isImage);
const imagePrefix = isImage ? '!' : '';
const itemText = item ? item.text : writeTextHereString;
const itemUrl = item ? item.url : writeUrlTextHere;
@ -53,6 +52,5 @@ export default async ({ text, selection, setTextAndSelection, item, isImage = nu
}
}
console.log('newText for image : ', newText);
setTextAndSelection({ text: newText, selection: newSelection });
};