Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3529594
D10035.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
2 KB
Referenced Files
None
Subscribers
None
D10035.diff
View Options
diff --git a/native/account/registration/keyserver-selection.react.js b/native/account/registration/keyserver-selection.react.js
--- a/native/account/registration/keyserver-selection.react.js
+++ b/native/account/registration/keyserver-selection.react.js
@@ -111,7 +111,7 @@
const serverCallParamOverride = React.useMemo(
() => ({
keyserverInfos: {
- [keyserverURL]: {
+ [(keyserverURL: string)]: {
urlPrefix: keyserverURL,
},
},
diff --git a/native/markdown/markdown-spoiler.react.js b/native/markdown/markdown-spoiler.react.js
--- a/native/markdown/markdown-spoiler.react.js
+++ b/native/markdown/markdown-spoiler.react.js
@@ -63,9 +63,9 @@
if (messageKey && parsedSpoilerIdentifier !== null) {
setSpoilerRevealed({
...spoilerRevealed,
- [messageKey]: {
+ [(messageKey: string)]: {
...spoilerRevealed[messageKey],
- [parsedSpoilerIdentifier]: true,
+ [(parsedSpoilerIdentifier: number)]: true,
},
});
}
diff --git a/native/markdown/markdown-user-mention.react.js b/native/markdown/markdown-user-mention.react.js
--- a/native/markdown/markdown-user-mention.react.js
+++ b/native/markdown/markdown-user-mention.react.js
@@ -37,7 +37,7 @@
return;
}
- setUserProfileBottomSheetActive({ [messageKey]: false });
+ setUserProfileBottomSheetActive({ [(messageKey: string)]: false });
}, [messageKey, setUserProfileBottomSheetActive]);
useFocusEffect(onFocusCallback);
@@ -47,7 +47,7 @@
return;
}
- setUserProfileBottomSheetActive({ [messageKey]: true });
+ setUserProfileBottomSheetActive({ [(messageKey: string)]: true });
navigateToUserProfileBottomSheet(userID);
}, [
messageKey,
diff --git a/native/markdown/markdown-utils.js b/native/markdown/markdown-utils.js
--- a/native/markdown/markdown-utils.js
+++ b/native/markdown/markdown-utils.js
@@ -58,7 +58,7 @@
): () => void {
const { setLinkModalActive } = markdownContext;
const onDismiss = React.useCallback(() => {
- messageKey && setLinkModalActive({ [messageKey]: false });
+ messageKey && setLinkModalActive({ [(messageKey: string)]: false });
}, [setLinkModalActive, messageKey]);
const url = normalizeURL(inputURL);
@@ -78,7 +78,7 @@
deepLinksContext?.setCurrentLinkUrl(url);
return;
}
- messageKey && setLinkModalActive({ [messageKey]: true });
+ messageKey && setLinkModalActive({ [(messageKey: string)]: true });
Alert.alert(
'External link',
`You sure you want to open this link?\n\n${displayURL}`,
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 8:15 PM (12 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2703068
Default Alt Text
D10035.diff (2 KB)
Attached To
Mode
D10035: [Flow202][native][skip-ci] [51/x] Fix Flow issues with computed properties
Attached
Detach File
Event Timeline
Log In to Comment