mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-09-02 19:31:41 +01:00
Fix extra prop in <AvatarPopup>
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user