Moves showLightbox to redux

This commit is contained in:
Josh Perez 2022-12-09 21:02:22 -05:00 committed by GitHub
parent 3a246656e3
commit 635a59a473
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
38 changed files with 584 additions and 504 deletions

View file

@ -55,12 +55,12 @@ function createMediaItem(
}
const createProps = (overrideProps: Partial<PropsType> = {}): PropsType => ({
close: action('close'),
closeLightbox: action('closeLightbox'),
i18n,
isViewOnce: Boolean(overrideProps.isViewOnce),
media: overrideProps.media || [],
onSave: action('onSave'),
selectedIndex: number('selectedIndex', overrideProps.selectedIndex || 0),
toggleForwardMessageModal: action('toggleForwardMessageModal'),
});
export function Multimedia(): JSX.Element {
@ -305,10 +305,6 @@ CustomChildren.story = {
name: 'Custom children',
};
export function Forwarding(): JSX.Element {
return <Lightbox {...createProps({})} onForward={action('onForward')} />;
}
export function ConversationHeader(): JSX.Element {
return (
<Lightbox