Skip to content

Commit cf021e7

Browse files
committed
Lint
1 parent a8a1daf commit cf021e7

File tree

1 file changed

+7
-21
lines changed

1 file changed

+7
-21
lines changed

src/components/comment/comment.stories.mdx

+7-21
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,7 @@ This information may be passed to the component as a `comment` object matching t
7474
}}
7575
>
7676
{(args) => {
77-
useEffect(() => {
78-
return initCommentReplyForms();
79-
});
77+
useEffect(() => initCommentReplyForms());
8078
return template({
8179
comment: makeComment(),
8280
allow_replies: args.allowReplies,
@@ -106,9 +104,7 @@ It is helpful for context within a discussion to know when a commentor is the or
106104
}}
107105
>
108106
{(args) => {
109-
useEffect(() => {
110-
return initCommentReplyForms();
111-
});
107+
useEffect(() => initCommentReplyForms());
112108
return template({
113109
comment: makeComment(),
114110
allow_replies: args.allowReplies,
@@ -135,9 +131,7 @@ It is helpful for context within a discussion to know when a commentor is the or
135131
}}
136132
>
137133
{(args) => {
138-
useEffect(() => {
139-
return initCommentReplyForms();
140-
});
134+
useEffect(() => initCommentReplyForms());
141135
return template({
142136
comment: makeComment(),
143137
allow_replies: args.allowReplies,
@@ -169,9 +163,7 @@ If `comment.approved` is not `true`, an [Alert](/docs/components-alert--basic) w
169163
}}
170164
>
171165
{(args) => {
172-
useEffect(() => {
173-
return initCommentReplyForms();
174-
});
166+
useEffect(() => initCommentReplyForms());
175167
return template({
176168
comment: makeComment({
177169
approved: false,
@@ -206,9 +198,7 @@ Additionally, a `source` object may be passed to the template consisting of a `u
206198
}}
207199
>
208200
{(args) => {
209-
useEffect(() => {
210-
return initCommentReplyForms();
211-
});
201+
useEffect(() => initCommentReplyForms());
212202
return template({
213203
comment: makeComment(),
214204
source: {
@@ -249,9 +239,7 @@ If the user is logged in, you should pass in `logged_in_user` and `log_out_url`
249239
}}
250240
>
251241
{(args) => {
252-
useEffect(() => {
253-
return initCommentReplyForms();
254-
});
242+
useEffect(() => initCommentReplyForms());
255243
return template({
256244
comment: makeComment(),
257245
allow_replies: args.allowReplies,
@@ -287,9 +275,7 @@ While it is theoretically possible to infinitely nest `children`, it's recommend
287275
}}
288276
>
289277
{(args) => {
290-
useEffect(() => {
291-
return initCommentReplyForms();
292-
});
278+
useEffect(() => initCommentReplyForms());
293279
return template({
294280
comment: makeComment({ replies: 2 }),
295281
allow_replies: args.allowReplies,

0 commit comments

Comments
 (0)