aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/ui/Message.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2019-11-14 14:32:50 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:55 +0300
commit6ecde9590b68189ca96fd0f2afccbd60d44f5950 (patch)
treefc7c60f76858599536fd8e0a5b4d2bb7e1fcb43b /vnext/src/ui/Message.js
parent546a94714b993e5fea838ef7326ed962f7cbb3ef (diff)
Fix some jsdoc definitions
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>