use parens for arrow funcs always

This commit is contained in:
Pavel Mineev
2021-01-29 03:17:10 -06:00
committed by Umputun
parent be2f6d0a20
commit e1e8da4b2a
40 changed files with 121 additions and 126 deletions
+2 -2
View File
@@ -52,7 +52,7 @@ export const Thread: FunctionComponent<Props> = ({ id, level, mix, getPreview })
aria-expanded={!collapsed}
>
<InView>
{inviewProps => (
{(inviewProps) => (
<Comment
CommentForm={CommentForm}
ref={inviewProps.ref}
@@ -70,7 +70,7 @@ export const Thread: FunctionComponent<Props> = ({ id, level, mix, getPreview })
{!collapsed &&
childs &&
!!childs.length &&
childs.map(currentId => (
childs.map((currentId) => (
<Thread key={`thread-${currentId}`} id={currentId} level={Math.min(level + 1, 6)} getPreview={getPreview} />
))}
{level < 6 && (