Lightbox.tsx: Fix formatting

This commit is contained in:
Scott Nonnenberg 2020-11-02 17:12:27 -08:00
parent 526ab4fe29
commit ab89c6c704

View file

@ -416,14 +416,16 @@ export class Lightbox extends React.Component<Props, State> {
);
};
private readonly onContextMenu = (event: React.MouseEvent<HTMLImageElement>) => {
private readonly onContextMenu = (
event: React.MouseEvent<HTMLImageElement>
) => {
const { contentType } = this.props;
// These are the only image types supported by Electron's NativeImage
if (contentType !== "image/png" && contentType !== "image/jpg") {
if (contentType !== 'image/png' && contentType !== 'image/jpg') {
event?.preventDefault();
}
}
};
private readonly onClose = () => {
const { close } = this.props;