diff --git a/js/views/attachment_view.js b/js/views/attachment_view.js index 94f94800b6..1fe54e5232 100644 --- a/js/views/attachment_view.js +++ b/js/views/attachment_view.js @@ -116,7 +116,7 @@ const props = { imageURL: this.objectUrl, - save: () => this.saveFile(), + onSave: () => this.saveFile(), // implicit: `close` }; this.lightboxView = new Whisper.ReactWrapperView({ diff --git a/ts/components/Lightbox.tsx b/ts/components/Lightbox.tsx index 401a509fb3..3a158a37a3 100644 --- a/ts/components/Lightbox.tsx +++ b/ts/components/Lightbox.tsx @@ -6,9 +6,9 @@ import React from 'react'; import classNames from 'classnames'; interface Props { - imageURL?: string; - save: () => void; close: () => void; + imageURL?: string; + onSave: () => void; } const styles = { @@ -71,7 +71,7 @@ export class Lightbox extends React.Component {
- +