diff options
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> |