From 0af53ef120ea995cb1c51ea2d3f5d0b7d017153b Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Thu, 5 Aug 2021 11:14:57 -0500 Subject: [PATCH] Fix extra prop in --- ts/components/AvatarPopup.stories.tsx | 1 - ts/components/AvatarPopup.tsx | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ts/components/AvatarPopup.stories.tsx b/ts/components/AvatarPopup.stories.tsx index 233ef207c1..c6c34d25d9 100644 --- a/ts/components/AvatarPopup.stories.tsx +++ b/ts/components/AvatarPopup.stories.tsx @@ -41,7 +41,6 @@ const createProps = (overrideProps: Partial = {}): Props => ({ name: text('name', overrideProps.name || ''), noteToSelf: boolean('noteToSelf', overrideProps.noteToSelf || false), onEditProfile: action('onEditProfile'), - onClick: action('onClick'), onSetChatColor: action('onSetChatColor'), onViewArchive: action('onViewArchive'), onViewPreferences: action('onViewPreferences'), diff --git a/ts/components/AvatarPopup.tsx b/ts/components/AvatarPopup.tsx index 192f6f61c0..9931423268 100644 --- a/ts/components/AvatarPopup.tsx +++ b/ts/components/AvatarPopup.tsx @@ -1,4 +1,4 @@ -// Copyright 2019-2020 Signal Messenger, LLC +// Copyright 2019-2021 Signal Messenger, LLC // SPDX-License-Identifier: AGPL-3.0-only import * as React from 'react'; @@ -20,7 +20,7 @@ export type Props = { // Matches Popper's RefHandler type innerRef?: React.Ref; style: React.CSSProperties; -} & AvatarProps; +} & Omit; export const AvatarPopup = (props: Props): JSX.Element => { const {