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 * as React from 'react';
import { memoize, noop } from 'lodash';
import { storiesOf } from '@storybook/react';
import { select } from '@storybook/addon-knobs';
import type { PropsType } from './GroupCallRemoteParticipant';
@ -64,9 +63,11 @@ const createProps = (
...overrideProps,
});
const story = storiesOf('Components/GroupCallRemoteParticipant', module);
export default {
title: 'Components/GroupCallRemoteParticipant',
};
story.add('Default', () => (
export const Default = (): JSX.Element => (
<GroupCallRemoteParticipant
{...createProps({
isInPip: false,
@ -76,9 +77,9 @@ story.add('Default', () => (
width: 120,
})}
/>
));
);
story.add('Speaking', () => (
export const Speaking = (): JSX.Element => (
<GroupCallRemoteParticipant
{...createProps(
{
@ -92,17 +93,21 @@ story.add('Speaking', () => (
{ hasRemoteAudio: true }
)}
/>
));
);
story.add('isInPip', () => (
export const IsInPip = (): JSX.Element => (
<GroupCallRemoteParticipant
{...createProps({
isInPip: true,
})}
/>
));
);
story.add('Blocked', () => (
IsInPip.story = {
name: 'isInPip',
};
export const Blocked = (): JSX.Element => (
<GroupCallRemoteParticipant
{...createProps(
{
@ -115,4 +120,4 @@ story.add('Blocked', () => (
{ isBlocked: true }
)}
/>
));
);