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 { action } from '@storybook/addon-actions';
import { storiesOf } from '@storybook/react';
import type { Props } from './CallingDeviceSelection';
import { CallingDeviceSelection } from './CallingDeviceSelection';
@ -38,13 +37,15 @@ const createProps = ({
toggleSettings: action('toggle-settings'),
});
const stories = storiesOf('Components/CallingDeviceSelection', module);
export default {
title: 'Components/CallingDeviceSelection',
};
stories.add('Default', () => {
export const Default = (): JSX.Element => {
return <CallingDeviceSelection {...createProps()} />;
});
};
stories.add('Some Devices', () => {
export const SomeDevices = (): JSX.Element => {
const availableSpeakers = [
{
name: 'Default',
@ -71,9 +72,9 @@ stories.add('Some Devices', () => {
});
return <CallingDeviceSelection {...props} />;
});
};
stories.add('Default Devices', () => {
export const DefaultDevices = (): JSX.Element => {
const availableSpeakers = [
{
name: 'default (Headphones)',
@ -102,9 +103,9 @@ stories.add('Default Devices', () => {
});
return <CallingDeviceSelection {...props} />;
});
};
stories.add('All Devices', () => {
export const AllDevices = (): JSX.Element => {
const availableSpeakers = [
{
name: 'Default',
@ -178,4 +179,4 @@ stories.add('All Devices', () => {
});
return <CallingDeviceSelection {...props} />;
});
};