mirror of
https://github.com/coracle-social/coracle.git
synced 2024-09-18 19:23:40 +00:00
Add "Profile" action to person view
This commit is contained in:
parent
222e318c2c
commit
779a34b9c5
@ -57,6 +57,8 @@
|
||||
actions.push({onClick: openAdvanced, label: 'Advanced', icon: 'sliders'})
|
||||
}
|
||||
|
||||
actions.push({onClick: openProfileInfo, label: 'Profile', icon: 'info'})
|
||||
|
||||
if (user.getPubkey() === pubkey && $canPublish) {
|
||||
actions.push({onClick: () => navigate('/profile'), label: 'Edit', icon: 'edit'})
|
||||
}
|
||||
@ -126,6 +128,10 @@
|
||||
modal.set({type: 'person/settings', person})
|
||||
}
|
||||
|
||||
const openProfileInfo = () => {
|
||||
modal.set({type: 'person/info', person})
|
||||
}
|
||||
|
||||
const share = () => {
|
||||
modal.set({type: 'person/share', person})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user