From aa160095fa0413dfa1e43b9dcfaf5f54f1ed31ad Mon Sep 17 00:00:00 2001 From: Swapnil Raj Date: Wed, 29 Jul 2020 17:26:51 +0530 Subject: [PATCH] Cleanup --- src/components/views/right_panel/VerificationPanel.tsx | 2 +- src/dispatcher/payloads/SetRightPanelPhasePayload.ts | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/components/views/right_panel/VerificationPanel.tsx b/src/components/views/right_panel/VerificationPanel.tsx index a4180bcd8a..0781bcf491 100644 --- a/src/components/views/right_panel/VerificationPanel.tsx +++ b/src/components/views/right_panel/VerificationPanel.tsx @@ -57,7 +57,7 @@ interface IProps { onClose: () => void; isRoomEncrypted: boolean; inDialog: boolean; - key: any; + key: number; } interface IState { diff --git a/src/dispatcher/payloads/SetRightPanelPhasePayload.ts b/src/dispatcher/payloads/SetRightPanelPhasePayload.ts index 5b78863b35..b7dd5d85fc 100644 --- a/src/dispatcher/payloads/SetRightPanelPhasePayload.ts +++ b/src/dispatcher/payloads/SetRightPanelPhasePayload.ts @@ -24,16 +24,14 @@ export interface SetRightPanelPhasePayload extends ActionPayload { action: Action.SetRightPanelPhase; phase: RightPanelPhases; - refireParams?: SetRightPanelPhaseRefireParams; + refireParams: SetRightPanelPhaseRefireParams; } export interface SetRightPanelPhaseRefireParams { - // XXX: Fix after the types are defiend in matrix-js-sdk - // No appropriate types exist yet for the fields member?: RoomMember; - verificationRequest?: typeof VerificationRequest; + verificationRequest?: VerificationRequest; groupId?: string; groupRoomId?: string; - // XXX: 'view_3pid_invite' action's payload + // XXX: The type for event should 'view_3pid_invite' action's payload event?: any; }