Migrate Lightbox to Storybook
This commit is contained in:
parent
3591fa005e
commit
4b0c206128
3 changed files with 122 additions and 110 deletions
|
@ -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} />;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue