Calling: Lobby

This commit is contained in:
Josh Perez 2020-10-07 21:25:33 -04:00 committed by Josh Perez
parent 358ee4ab72
commit 59a181bd30
21 changed files with 1146 additions and 388 deletions

View file

@ -15,6 +15,7 @@ const callDetails = {
isIncoming: true,
isVideoCall: true,
id: '3051234567',
avatarPath: undefined,
color: 'ultramarine' as ColorType,
title: 'Rick Sanchez',
@ -24,7 +25,7 @@ const callDetails = {
};
const createProps = (overrideProps: Partial<PropsType> = {}): PropsType => ({
callDetails,
callDetails: overrideProps.callDetails || callDetails,
hangUp: action('hang-up'),
hasLocalVideo: boolean('hasLocalVideo', overrideProps.hasLocalVideo || false),
hasRemoteVideo: boolean(
@ -43,3 +44,23 @@ story.add('Default', () => {
const props = createProps();
return <CallingPip {...props} />;
});
story.add('Contact (with avatar)', () => {
const props = createProps({
callDetails: {
...callDetails,
avatarPath: 'https://www.fillmurray.com/64/64',
},
});
return <CallingPip {...props} />;
});
story.add('Contact (no color)', () => {
const props = createProps({
callDetails: {
...callDetails,
color: undefined,
},
});
return <CallingPip {...props} />;
});