mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-25 04:36:46 +00:00
Migrate LightboxGallery to Storybook
This commit is contained in:
committed by
Josh Perez
parent
4b0c206128
commit
84fee07a72
@@ -19,7 +19,7 @@ export interface MediaItemType {
|
||||
message: Message;
|
||||
}
|
||||
|
||||
interface Props {
|
||||
export interface Props {
|
||||
close: () => void;
|
||||
i18n: LocalizerType;
|
||||
media: Array<MediaItemType>;
|
||||
@@ -60,7 +60,8 @@ export class LightboxGallery extends React.Component<Props, State> {
|
||||
selectedIndex > firstIndex ? this.handlePrevious : undefined;
|
||||
const onNext = selectedIndex < lastIndex ? this.handleNext : undefined;
|
||||
|
||||
const objectURL = selectedMedia.objectURL || 'images/alert-outline.svg';
|
||||
const objectURL =
|
||||
selectedMedia.objectURL || 'images/full-screen-flow/alert-outline.svg';
|
||||
const { attachment } = selectedMedia;
|
||||
|
||||
const saveCallback = onSave ? this.handleSave : undefined;
|
||||
|
||||
Reference in New Issue
Block a user