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