Skip to content

Commit 228458c

Browse files
committed
refactor(comments): arrange components
1 parent d3a48a3 commit 228458c

File tree

8 files changed

+238
-247
lines changed

8 files changed

+238
-247
lines changed

src/components/Article/Comment.js

Lines changed: 0 additions & 62 deletions
This file was deleted.

src/components/Article/CommentContainer.js

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/components/Article/CommentInput.js

Lines changed: 0 additions & 65 deletions
This file was deleted.

src/components/Article/CommentList.js

Lines changed: 0 additions & 39 deletions
This file was deleted.

src/components/Article/DeleteButton.js

Lines changed: 0 additions & 30 deletions
This file was deleted.

src/components/Article/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ import TagsList from '../../features/tags/TagsList';
77
import { articlePageUnloaded, getArticle } from '../../reducers/article';
88
import ArticleMeta from './ArticleMeta';
99

10-
const CommentContainer = lazy(
10+
const CommentSection = lazy(
1111
() =>
1212
import(
13-
'./CommentContainer'
14-
) /* webpackChunkName: "CommentContainer", webpackPrefetch: true */
13+
'../../features/comments/CommentSection'
14+
) /* webpackChunkName: "CommentSection", webpackPrefetch: true */
1515
);
1616

1717
/**
@@ -72,7 +72,7 @@ function Article({ match }) {
7272
<hr />
7373

7474
<Suspense fallback={<p>Loading comments</p>}>
75-
<CommentContainer />
75+
<CommentSection />
7676
</Suspense>
7777
</div>
7878
</div>

0 commit comments

Comments
 (0)