diff --git a/src/state/models/profile-view.ts b/src/state/models/profile-view.ts
index 5244e0912f..83389c82df 100644
--- a/src/state/models/profile-view.ts
+++ b/src/state/models/profile-view.ts
@@ -43,7 +43,7 @@ export class ProfileViewModel {
postsCount: number = 0
myState = new ProfileViewMyStateModel()
- // data to be implemented in the protocol
+ // TODO TEMP data to be implemented in the protocol
userAvatar: string | null = null
userBanner: string | null = null
@@ -121,13 +121,14 @@ export class ProfileViewModel {
async updateProfile(
fn: (existing?: Profile.Record) => Profile.Record,
- userAvatar: string | null,
- userBanner: string | null,
+ userAvatar: string | null, // TODO TEMP
+ userBanner: string | null, // TODO TEMP
) {
- await apilib.updateProfile(this.rootStore, this.did, fn)
- // add userBanner & userAvatar in the protocol when suported
+ // TODO TEMP add userBanner & userAvatar in the protocol when suported
this.userAvatar = userAvatar
this.userBanner = userBanner
+
+ await apilib.updateProfile(this.rootStore, this.did, fn)
await this.refresh()
}
diff --git a/src/view/com/modals/EditProfile.tsx b/src/view/com/modals/EditProfile.tsx
index af5cf27b30..895fb05a7f 100644
--- a/src/view/com/modals/EditProfile.tsx
+++ b/src/view/com/modals/EditProfile.tsx
@@ -16,7 +16,7 @@ import * as Profile from '../../../third-party/api/src/client/types/app/bsky/act
import {UserBanner} from '../util/UserBanner'
import {UserAvatar} from '../util/UserAvatar'
-export const snapPoints = ['60%']
+export const snapPoints = ['80%']
export function Component({
profileView,
@@ -59,8 +59,8 @@ export function Component({
description,
}
},
- userAvatar,
- userBanner,
+ userAvatar, // TEMP
+ userBanner, // TEMP
)
Toast.show('Profile updated')
onUpdate?.()
@@ -79,14 +79,12 @@ export function Component({
Edit my profile
)}
-
+
Display Name
setDisplayName(enforceLen(v, MAX_DISPLAY_NAME))}
/>
-
+
Description
@@ -135,15 +135,14 @@ function getInitials(str: string): string {
const styles = StyleSheet.create({
editButtonContainer: {
position: 'absolute',
- width: 50,
- height: 50,
- top: '50%',
- left: '50%',
- borderRadius: 25,
+ width: 24,
+ height: 24,
+ bottom: 0,
+ right: 0,
+ borderRadius: 12,
alignItems: 'center',
justifyContent: 'center',
- backgroundColor: colors.gray5 + '99',
- transform: [{translateX: -25}, {translateY: -25}],
+ backgroundColor: colors.gray5,
},
avatarImage: {
width: 80,
diff --git a/src/view/com/util/UserBanner.tsx b/src/view/com/util/UserBanner.tsx
index 5a6d123a70..c0421fe12a 100644
--- a/src/view/com/util/UserBanner.tsx
+++ b/src/view/com/util/UserBanner.tsx
@@ -89,8 +89,8 @@ export function UserBanner({
@@ -108,15 +108,14 @@ export function UserBanner({
const styles = StyleSheet.create({
editButtonContainer: {
position: 'absolute',
- width: 50,
- height: 50,
- top: '50%',
- left: '50%',
- borderRadius: 25,
+ width: 24,
+ height: 24,
+ bottom: 8,
+ right: 8,
+ borderRadius: 12,
alignItems: 'center',
justifyContent: 'center',
- backgroundColor: colors.gray5 + '99',
- transform: [{translateX: -25}, {translateY: -25}],
+ backgroundColor: colors.gray5,
},
bannerImage: {
width: '100%',