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 || ''),
|
name: text('name', overrideProps.name || ''),
|
||||||
noteToSelf: boolean('noteToSelf', overrideProps.noteToSelf || false),
|
noteToSelf: boolean('noteToSelf', overrideProps.noteToSelf || false),
|
||||||
onEditProfile: action('onEditProfile'),
|
onEditProfile: action('onEditProfile'),
|
||||||
onClick: action('onClick'),
|
|
||||||
onSetChatColor: action('onSetChatColor'),
|
onSetChatColor: action('onSetChatColor'),
|
||||||
onViewArchive: action('onViewArchive'),
|
onViewArchive: action('onViewArchive'),
|
||||||
onViewPreferences: action('onViewPreferences'),
|
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
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
@ -20,7 +20,7 @@ export type Props = {
|
||||||
// Matches Popper's RefHandler type
|
// Matches Popper's RefHandler type
|
||||||
innerRef?: React.Ref<HTMLDivElement>;
|
innerRef?: React.Ref<HTMLDivElement>;
|
||||||
style: React.CSSProperties;
|
style: React.CSSProperties;
|
||||||
} & AvatarProps;
|
} & Omit<AvatarProps, 'onClick'>;
|
||||||
|
|
||||||
export const AvatarPopup = (props: Props): JSX.Element => {
|
export const AvatarPopup = (props: Props): JSX.Element => {
|
||||||
const {
|
const {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue