Fix extra prop in <AvatarPopup>
This commit is contained in:
parent
0588b9c8d9
commit
0af53ef120
2 changed files with 2 additions and 3 deletions
|
@ -41,7 +41,6 @@ const createProps = (overrideProps: Partial<Props> = {}): 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'),
|
||||
|
|
|
@ -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<HTMLDivElement>;
|
||||
style: React.CSSProperties;
|
||||
} & AvatarProps;
|
||||
} & Omit<AvatarProps, 'onClick'>;
|
||||
|
||||
export const AvatarPopup = (props: Props): JSX.Element => {
|
||||
const {
|
||||
|
|
Loading…
Add table
Reference in a new issue