diff --git a/ts/components/Lightbox.tsx b/ts/components/Lightbox.tsx
index 8121d7ec5..6dc337377 100644
--- a/ts/components/Lightbox.tsx
+++ b/ts/components/Lightbox.tsx
@@ -54,9 +54,25 @@ interface IconButtonProps {
type: 'save' | 'close' | 'previous' | 'next';
onClick?: () => void;
}
-const IconButton = ({ onClick, type }: IconButtonProps) => (
-
-);
+
+const IconButton = ({ onClick, type }: IconButtonProps) => {
+ const clickHandler = (event: React.MouseEvent): void => {
+ event.preventDefault();
+ if (!onClick) {
+ return;
+ }
+
+ onClick();
+ };
+
+ return (
+
+ );
+};
export class Lightbox extends React.Component {
private containerRef: HTMLDivElement | null = null;