Page MenuHomePhabricator

D11199.diff
No OneTemporary

D11199.diff

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

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)

Event Timeline