Migrate Lightbox to Storybook

This commit is contained in:
Chris Svenningsen 2020-08-21 15:05:32 -07:00 committed by Josh Perez
parent 3591fa005e
commit 4b0c206128
3 changed files with 122 additions and 110 deletions

View file

@ -23,7 +23,7 @@ const colorSVG = (url: string, color: string) => {
};
};
interface Props {
export interface Props {
close: () => void;
contentType: MIME.MIMEType | undefined;
i18n: LocalizerType;
@ -363,7 +363,7 @@ export class Lightbox extends React.Component<Props, State> {
!isVideoTypeSupported && MIME.isVideo(contentType);
if (isUnsupportedImageType || isUnsupportedVideoType) {
const iconUrl = isUnsupportedVideoType
? 'images/video.svg'
? 'images/movie.svg'
: 'images/image.svg';
return <Icon url={iconUrl} onClick={this.onObjectClick} />;