aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Message.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnext/src/ui/Message.js')
-rw-r--r--vnext/src/ui/Message.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/vnext/src/ui/Message.js b/vnext/src/ui/Message.js
index 51ff12ec..83c6fcab 100644
--- a/vnext/src/ui/Message.js
+++ b/vnext/src/ui/Message.js
@@ -13,7 +13,7 @@ import './Message.css';
/**
* Message component
- * @param {{data: import('../api').Message, visitor: import('../api').User, children: Element}} props
+ * @param {{data: import('../api').Message, visitor: import('../api').User, children: React.ReactElement}} props
*/
export default function Message({ data, visitor, children }) {
const isCode = (data.tags || []).indexOf('code') >= 0;
@@ -123,6 +123,7 @@ function Tags({ data, user }) {
{
data.map(tag => {
return (<Link key={tag} to={{ pathname: `/${user.uname}`, search: `?tag=${tag}` }} title={tag}>{tag}</Link>);
+ // @ts-ignore
}).reduce((prev, curr) => [prev, ', ', curr])
}
</div>