diff options
author | Vitaly Takmazov | 2019-06-11 14:56:08 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-01-13 10:37:55 +0300 |
commit | ee5f3a4a78cd9a4cc2ed259ce599db95765f24ce (patch) | |
tree | 7e0243d335af5b93c49d5d29ce80988bbed8b220 /vnext/src/ui/Message.js | |
parent | be48cd1cccacc0cf5b0f6c84455ab54a6a7bf672 (diff) |
Message editing
Diffstat (limited to 'vnext/src/ui/Message.js')
-rw-r--r-- | vnext/src/ui/Message.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/vnext/src/ui/Message.js b/vnext/src/ui/Message.js index eb008bfe..fd225282 100644 --- a/vnext/src/ui/Message.js +++ b/vnext/src/ui/Message.js @@ -38,7 +38,15 @@ export default function Message({ data, visitor, children, ...rest }) { {moment.utc(data.timestamp).fromNow()} </time> </Link> + { + visitor.uid == data.user.uid && + <> + <span> · </span> + <Link to={{ pathname: '/post', state: { draft: data }}}>Edit</Link> + </> + } </div> + </Avatar> <TagsList user={data.user} data={data.tags || []} /> </header> |