diff --git a/js/views/conversation_view.js b/js/views/conversation_view.js
index cdc7e4188..adde9b458 100644
--- a/js/views/conversation_view.js
+++ b/js/views/conversation_view.js
@@ -589,7 +589,6 @@
documents: [],
onItemClick: ({message}) => {
const lightboxProps = {
- shouldShowSaveAsButton: false,
imageURL: message.objectURL,
};
this.lightboxView = new Whisper.ReactWrapperView({
diff --git a/ts/components/Lightbox.md b/ts/components/Lightbox.md
index e6aa1395b..a5fbd148e 100644
--- a/ts/components/Lightbox.md
+++ b/ts/components/Lightbox.md
@@ -1,10 +1,12 @@
```js
+const noop = () => {};
+
```
diff --git a/ts/components/Lightbox.tsx b/ts/components/Lightbox.tsx
index f1e111f26..7f119d790 100644
--- a/ts/components/Lightbox.tsx
+++ b/ts/components/Lightbox.tsx
@@ -11,9 +11,6 @@ interface Props {
onNext?: () => void;
onPrevious?: () => void;
onSave: () => void;
- shouldShowNextButton: boolean;
- shouldShowPreviousButton: boolean;
- shouldShowSaveAsButton: boolean;
}
const styles = {
@@ -57,12 +54,6 @@ const IconButton = ({ onClick, type }: IconButtonProps) => (
);
export class Lightbox extends React.Component {
- public static defaultProps: Partial = {
- shouldShowNextButton: false,
- shouldShowPreviousButton: false,
- shouldShowSaveAsButton: false,
- };
-
private containerRef: HTMLDivElement | null = null;
public componentDidMount() {
@@ -78,9 +69,6 @@ export class Lightbox extends React.Component {
public render() {
const {
imageURL,
- shouldShowNextButton,
- shouldShowPreviousButton,
- shouldShowSaveAsButton,
} = this.props;
return (
{
- {shouldShowSaveAsButton ? (
+ {this.props.onSave ? (
) : null}
- {shouldShowPreviousButton ? (
+ {this.props.onPrevious ? (
) : null}
- {shouldShowNextButton ? (
+ {this.props.onNext ? (
) : null}