More profile refactor updates (#1886)
* Update the profile avatar lightbox * Update profile editor * Add dynamic likes tab * Add dynamic feeds and lists tabs * Implement lists listing on profiles
This commit is contained in:
parent
8217761363
commit
a01463788d
14 changed files with 432 additions and 84 deletions
|
@ -25,7 +25,7 @@ export const Lightbox = observer(function Lightbox() {
|
|||
const opts = store.shell.activeLightbox as models.ProfileImageLightbox
|
||||
return (
|
||||
<ImageView
|
||||
images={[{uri: opts.profileView.avatar || ''}]}
|
||||
images={[{uri: opts.profile.avatar || ''}]}
|
||||
initialImageIndex={0}
|
||||
visible
|
||||
onRequestClose={onClose}
|
||||
|
|
|
@ -38,8 +38,8 @@ export const Lightbox = observer(function Lightbox() {
|
|||
let imgs: Img[] | undefined
|
||||
if (activeLightbox instanceof models.ProfileImageLightbox) {
|
||||
const opts = activeLightbox
|
||||
if (opts.profileView.avatar) {
|
||||
imgs = [{uri: opts.profileView.avatar}]
|
||||
if (opts.profile.avatar) {
|
||||
imgs = [{uri: opts.profile.avatar}]
|
||||
}
|
||||
} else if (activeLightbox instanceof models.ImagesLightbox) {
|
||||
const opts = activeLightbox
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue