Dynamic audio level indicator
This commit is contained in:
parent
ac59dec5aa
commit
e6223b6a11
24 changed files with 323 additions and 123 deletions
17
ts/components/CallingAudioIndicator.stories.tsx
Normal file
17
ts/components/CallingAudioIndicator.stories.tsx
Normal file
|
@ -0,0 +1,17 @@
|
|||
// Copyright 2022 Signal Messenger, LLC
|
||||
// SPDX-License-Identifier: AGPL-3.0-only
|
||||
|
||||
import React from 'react';
|
||||
import { storiesOf } from '@storybook/react';
|
||||
import { boolean, select } from '@storybook/addon-knobs';
|
||||
|
||||
import { CallingAudioIndicator } from './CallingAudioIndicator';
|
||||
|
||||
const story = storiesOf('Components/CallingAudioIndicator', module);
|
||||
|
||||
story.add('Default', () => (
|
||||
<CallingAudioIndicator
|
||||
hasAudio={boolean('hasAudio', true)}
|
||||
audioLevel={select('audioLevel', [0, 0.25, 0.5, 0.75, 1], 0.5)}
|
||||
/>
|
||||
));
|
Loading…
Add table
Add a link
Reference in a new issue