From f65af33e6aa854f205e617110768a8e1cf0bc9a3 Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Fri, 4 Dec 2020 11:30:46 -0600 Subject: [PATCH] Remove `any` from GroupCallRemoteParticipant stories --- .../GroupCallRemoteParticipant.stories.tsx | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/ts/components/GroupCallRemoteParticipant.stories.tsx b/ts/components/GroupCallRemoteParticipant.stories.tsx index 6d6b364fa2..a7b34bda4b 100644 --- a/ts/components/GroupCallRemoteParticipant.stories.tsx +++ b/ts/components/GroupCallRemoteParticipant.stories.tsx @@ -14,11 +14,22 @@ import enMessages from '../../_locales/en/messages.json'; 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 = ( - overrideProps: Partial<PropsType> = {}, + overrideProps: OverridePropsType, isBlocked?: boolean -): any => ({ +): PropsType => ({ // eslint-disable-next-line @typescript-eslint/no-explicit-any getGroupCallVideoFrameSource: noop as any, i18n, @@ -31,6 +42,7 @@ const createProps = ( title: '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, + uuid: '992ed3b9-fc9b-47a9-bdb4-e0c7cbb0fda5', }, ...overrideProps, });