remove unecessary computed
This commit is contained in:
@@ -86,14 +86,6 @@ export class ProfileViewModel {
|
||||
return this.declaration.actorType === ACTOR_TYPE_SCENE
|
||||
}
|
||||
|
||||
get userAvatarPath() {
|
||||
return this.userAvatar?.path
|
||||
}
|
||||
|
||||
get userBannerPath() {
|
||||
return this.userBanner?.path
|
||||
}
|
||||
|
||||
// public api
|
||||
// =
|
||||
|
||||
|
||||
@@ -94,7 +94,7 @@ export function UserAvatar({
|
||||
{profileView.userAvatar != null ? (
|
||||
<Image
|
||||
style={styles.avatarImage}
|
||||
source={{uri: profileView.userAvatarPath}}
|
||||
source={{uri: profileView.userAvatar.path}}
|
||||
/>
|
||||
) : (
|
||||
renderSvg(size, initials)
|
||||
@@ -111,7 +111,7 @@ export function UserAvatar({
|
||||
<Image
|
||||
style={styles.avatarImage}
|
||||
resizeMode="stretch"
|
||||
source={{uri: profileView.userAvatarPath}}
|
||||
source={{uri: profileView.userAvatar.path}}
|
||||
/>
|
||||
) : (
|
||||
renderSvg(size, initials)
|
||||
|
||||
@@ -84,7 +84,7 @@ export function UserBanner({
|
||||
<Image
|
||||
style={styles.bannerImage}
|
||||
resizeMode="stretch"
|
||||
source={{uri: profileView.userBannerPath}}
|
||||
source={{uri: profileView.userBanner.path}}
|
||||
/>
|
||||
) : (
|
||||
renderSvg()
|
||||
@@ -101,7 +101,7 @@ export function UserBanner({
|
||||
<Image
|
||||
style={styles.bannerImage}
|
||||
resizeMode="stretch"
|
||||
source={{uri: profileView.userBannerPath}}
|
||||
source={{uri: profileView.userBanner.path}}
|
||||
/>
|
||||
) : (
|
||||
renderSvg()
|
||||
|
||||
Reference in New Issue
Block a user