Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3384981
D11199.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D11199.diff
View Options
diff --git a/native/media/encrypted-image.react.js b/native/media/encrypted-image.react.js
--- a/native/media/encrypted-image.react.js
+++ b/native/media/encrypted-image.react.js
@@ -39,7 +39,7 @@
const connected = useSelector(state => state.connectivity.connected);
const prevConnectedRef = React.useRef(connected);
const [attempt, setAttempt] = React.useState(0);
- const [errorOccured, setErrorOccured] = React.useState(false);
+ const [errorOccurred, setErrorOccurred] = React.useState(false);
if (prevConnectedRef.current !== connected) {
if (!source && connected) {
@@ -83,7 +83,7 @@
void mediaCache?.set(blobURI, result.uri);
setSource({ uri: result.uri });
} else {
- setErrorOccured(true);
+ setErrorOccurred(true);
}
}
};
@@ -110,7 +110,7 @@
style={style}
invisibleLoad={invisibleLoad}
key={attempt}
- errorOccured={errorOccured}
+ errorOccurred={errorOccurred}
/>
);
}
diff --git a/native/media/loadable-image.react.js b/native/media/loadable-image.react.js
--- a/native/media/loadable-image.react.js
+++ b/native/media/loadable-image.react.js
@@ -16,10 +16,10 @@
+spinnerColor: string,
+style: ImageStyle,
+invisibleLoad: boolean,
- +errorOccured?: boolean,
+ +errorOccurred?: boolean,
};
function LoadableImage(props: Props): React.Node {
- const { source, placeholder, onLoad: onLoadProp, errorOccured } = props;
+ const { source, placeholder, onLoad: onLoadProp, errorOccurred } = props;
const styles = useStyles(unboundStyles);
const [loaded, setLoaded] = React.useState(false);
@@ -53,7 +53,7 @@
}
let statusIndicator;
- if (error || errorOccured) {
+ if (error || errorOccurred) {
statusIndicator = (
<View style={styles.statusIndicatorContainer}>
<Icon name="alert-circle" style={styles.errorIndicator} size={42} />
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 29, 10:56 PM (15 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2598504
Default Alt Text
D11199.diff (1 KB)
Attached To
Mode
D11199: [native] Fix typo in encrypted-image
Attached
Detach File
Event Timeline
Log In to Comment