Moves showLightbox to redux
This commit is contained in:
parent
3a246656e3
commit
635a59a473
38 changed files with 584 additions and 504 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue