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 && ( - + Policy.updateWorkspaceAvatar(policy?.id ?? '', file as File)} onImageRemoved={() => Policy.deleteWorkspaceAvatar(policy?.id ?? '')} diff --git a/src/styles/index.ts b/src/styles/index.ts index 3cfb38ef4bab..c7860f0e20a6 100644 --- a/src/styles/index.ts +++ b/src/styles/index.ts @@ -3098,7 +3098,6 @@ const styles = (theme: ThemeColors) => smallEditIcon: { alignItems: 'center', backgroundColor: theme.buttonDefaultBG, - borderColor: theme.appBG, 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,