diff --git a/ts/components/Lightbox.tsx b/ts/components/Lightbox.tsx index 2e7a1f897..d1612e2c5 100644 --- a/ts/components/Lightbox.tsx +++ b/ts/components/Lightbox.tsx @@ -13,6 +13,7 @@ interface Props { onSave: () => void; shouldShowNextButton: boolean; shouldShowPreviousButton: boolean; + shouldShowSaveAsButton: boolean; } const styles = { @@ -61,6 +62,7 @@ export class Lightbox extends React.Component { public static defaultProps: Partial = { shouldShowNextButton: false, shouldShowPreviousButton: false, + shouldShowSaveAsButton: false, }; public componentDidMount() { @@ -78,6 +80,7 @@ export class Lightbox extends React.Component { imageURL, shouldShowNextButton, shouldShowPreviousButton, + shouldShowSaveAsButton, } = this.props; return (
{
- + {shouldShowSaveAsButton ? ( + + ) : null} {shouldShowPreviousButton ? ( ) : null}