Upgrade react and storybook

This commit is contained in:
Josh Perez 2022-06-06 20:48:02 -04:00 committed by GitHub
parent 6476a4fe73
commit 42eb4013d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
244 changed files with 15341 additions and 10249 deletions

View file

@ -3,7 +3,6 @@
import React from 'react';
import { storiesOf } from '@storybook/react';
import { action } from '@storybook/addon-actions';
import { select } from '@storybook/addon-knobs';
@ -29,17 +28,19 @@ const createProps = (overrideProps: Partial<PropsType> = {}): PropsType => ({
onClose: action('onClose'),
});
const story = storiesOf('Components/AvatarLightbox', module);
export default {
title: 'Components/AvatarLightbox',
};
story.add('Group', () => (
export const Group = (): JSX.Element => (
<AvatarLightbox
{...createProps({
isGroup: true,
})}
/>
));
);
story.add('Person', () => {
export const Person = (): JSX.Element => {
const conversation = getDefaultConversation();
return (
<AvatarLightbox
@ -49,12 +50,12 @@ story.add('Person', () => {
})}
/>
);
});
};
story.add('Photo', () => (
export const Photo = (): JSX.Element => (
<AvatarLightbox
{...createProps({
avatarPath: '/fixtures/kitten-1-64-64.jpg',
})}
/>
));
);