minor tweak
This commit is contained in:
parent
0393aecbdd
commit
e8672ce827
|
@ -9,7 +9,7 @@ import { BUTTON_HIT_SLOP } from '../message/utils';
|
|||
import styles from './styles';
|
||||
|
||||
interface IAvatarContainer extends IAvatar {
|
||||
handleEdit: () => void;
|
||||
handleEdit?: () => void;
|
||||
}
|
||||
|
||||
const AvatarWithEdit = ({
|
||||
|
@ -45,6 +45,7 @@ const AvatarWithEdit = ({
|
|||
isStatic={isStatic}
|
||||
rid={rid}
|
||||
/>
|
||||
{handleEdit ? (
|
||||
<Button
|
||||
title={I18n.t('Edit')}
|
||||
type='secondary'
|
||||
|
@ -56,6 +57,7 @@ const AvatarWithEdit = ({
|
|||
color={colors.titleText}
|
||||
hitSlop={BUTTON_HIT_SLOP}
|
||||
/>
|
||||
) : null}
|
||||
</>
|
||||
);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue