Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3368139
D11199.id37701.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.id37701.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
Tue, Nov 26, 6:21 PM (19 h, 48 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2585541
Default Alt Text
D11199.id37701.diff (1 KB)
Attached To
Mode
D11199: [native] Fix typo in encrypted-image
Attached
Detach File
Event Timeline
Log In to Comment