Remove any from GroupCallRemoteParticipant stories

This commit is contained in:
Evan Hahn 2020-12-04 11:30:46 -06:00 committed by GitHub
parent df4e7c1bd4
commit f65af33e6a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,11 +14,22 @@ import enMessages from '../../_locales/en/messages.json';
const i18n = setupI18n('en', enMessages); const i18n = setupI18n('en', enMessages);
// eslint-disable-next-line @typescript-eslint/no-explicit-any type OverridePropsType =
| {
isInPip: true;
}
| {
isInPip: false;
height: number;
left: number;
top: number;
width: number;
};
const createProps = ( const createProps = (
overrideProps: Partial<PropsType> = {}, overrideProps: OverridePropsType,
isBlocked?: boolean isBlocked?: boolean
): any => ({ ): PropsType => ({
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
getGroupCallVideoFrameSource: noop as any, getGroupCallVideoFrameSource: noop as any,
i18n, i18n,
@ -31,6 +42,7 @@ const createProps = (
title: title:
'Pablo Diego José Francisco de Paula Juan Nepomuceno María de los Remedios Cipriano de la Santísima Trinidad Ruiz y Picasso', 'Pablo Diego José Francisco de Paula Juan Nepomuceno María de los Remedios Cipriano de la Santísima Trinidad Ruiz y Picasso',
videoAspectRatio: 1.3, videoAspectRatio: 1.3,
uuid: '992ed3b9-fc9b-47a9-bdb4-e0c7cbb0fda5',
}, },
...overrideProps, ...overrideProps,
}); });