From ad115be45c06258c15892929f9e484cf8435667f Mon Sep 17 00:00:00 2001 From: Vit Horacek Date: Wed, 13 Mar 2024 13:29:30 +0000 Subject: [PATCH] Add new styles --- src/components/AvatarWithImagePicker.tsx | 6 +++++- src/styles/index.ts | 9 ++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/components/AvatarWithImagePicker.tsx b/src/components/AvatarWithImagePicker.tsx index 5755c69641c8..8bcda759d26c 100644 --- a/src/components/AvatarWithImagePicker.tsx +++ b/src/components/AvatarWithImagePicker.tsx @@ -54,6 +54,9 @@ type AvatarWithImagePickerProps = { /** Additional style props for disabled picker */ disabledStyle?: StyleProp; + /** Additional style props for the edit icon */ + editIconStyle?: StyleProp; + /** Executed once an image has been selected */ onImageSelected?: (file: File | CustomRNImageManipulatorResult) => void; @@ -120,6 +123,7 @@ function AvatarWithImagePicker({ DefaultAvatar = () => null, style, disabledStyle, + editIconStyle, pendingAction, errors, errorRowStyles, @@ -323,7 +327,7 @@ function AvatarWithImagePicker({ )} {!disabled && ( - + smallEditIcon: { alignItems: 'center', backgroundColor: theme.buttonDefaultBG, - borderColor: theme.cardBG, borderRadius: 20, borderWidth: 3, color: theme.textReversed, @@ -3107,6 +3106,14 @@ const styles = (theme: ThemeColors) => justifyContent: 'center', }, + smallEditIconWorkspace: { + borderColor: theme.cardBG, + }, + + smallEditIconAccount: { + borderColor: theme.appBG, + }, + smallAvatarEditIcon: { position: 'absolute', right: -8,