minor tweak
This commit is contained in:
parent
3db96db70c
commit
0393aecbdd
|
@ -9,7 +9,7 @@ import { BUTTON_HIT_SLOP } from '../message/utils';
|
||||||
import styles from './styles';
|
import styles from './styles';
|
||||||
|
|
||||||
interface IAvatarContainer extends IAvatar {
|
interface IAvatarContainer extends IAvatar {
|
||||||
handleEdit?: () => void;
|
handleEdit: () => void;
|
||||||
}
|
}
|
||||||
|
|
||||||
const AvatarWithEdit = ({
|
const AvatarWithEdit = ({
|
||||||
|
@ -45,19 +45,17 @@ const AvatarWithEdit = ({
|
||||||
isStatic={isStatic}
|
isStatic={isStatic}
|
||||||
rid={rid}
|
rid={rid}
|
||||||
/>
|
/>
|
||||||
{handleEdit ? (
|
<Button
|
||||||
<Button
|
title={I18n.t('Edit')}
|
||||||
title={I18n.t('Edit')}
|
type='secondary'
|
||||||
type='secondary'
|
backgroundColor={colors.editAndUploadButtonAvatar}
|
||||||
backgroundColor={colors.editAndUploadButtonAvatar}
|
onPress={handleEdit}
|
||||||
onPress={handleEdit}
|
testID='avatar-edit-button'
|
||||||
testID='avatar-edit-button'
|
style={styles.editAvatarButton}
|
||||||
style={styles.editAvatarButton}
|
styleText={[styles.textButton]}
|
||||||
styleText={[styles.textButton]}
|
color={colors.titleText}
|
||||||
color={colors.titleText}
|
hitSlop={BUTTON_HIT_SLOP}
|
||||||
hitSlop={BUTTON_HIT_SLOP}
|
/>
|
||||||
/>
|
|
||||||
) : null}
|
|
||||||
</>
|
</>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue