forked from garageScript/c0d3-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:Create a folder for CommentBox component
Related to garageScript#2080
- Loading branch information
Showing
5 changed files
with
121 additions
and
21 deletions.
There are no files selected for viewing
27 changes: 13 additions & 14 deletions
27
components/CommentBox.test.js → components/CommentBox/CommentBox.test.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 7 additions & 7 deletions
14
components/CommentBox.tsx → components/CommentBox/CommentBox.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
100 changes: 100 additions & 0 deletions
100
components/CommentBox/__snapshots__/CommentBox.test.js.snap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,100 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`CommentBox component Should render commentBox with comments 1`] = ` | ||
<div> | ||
<div | ||
class="showHide" | ||
> | ||
Hide conversation | ||
</div> | ||
<div | ||
class="commentBox bg-white d-auto" | ||
> | ||
<div | ||
class="border border-lightgray rounded my-1" | ||
> | ||
<div | ||
class="ms-3" | ||
> | ||
<span | ||
wrapper="code_wrapper" | ||
> | ||
First Comment | ||
</span> | ||
</div> | ||
<div | ||
class="wrapper d-flex justify-content-between align-items-center p-1" | ||
> | ||
<div | ||
class="wrapper" | ||
> | ||
<a | ||
class="comment_author__inline mt-2 " | ||
href="/profile/newbie" | ||
> | ||
<div | ||
class="d-inline" | ||
> | ||
Noob Newbie | ||
</div> | ||
<div | ||
class="d-inline text-muted" | ||
> | ||
@newbie | ||
</div> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
<div | ||
class="border border-lightgray rounded my-1" | ||
> | ||
<div | ||
class="ms-3" | ||
> | ||
<span | ||
wrapper="code_wrapper" | ||
> | ||
Second Comment | ||
</span> | ||
</div> | ||
<div | ||
class="wrapper d-flex justify-content-between align-items-center p-1" | ||
> | ||
<div | ||
class="wrapper" | ||
> | ||
<a | ||
class="comment_author__inline mt-2 " | ||
href="/profile/newbie" | ||
> | ||
<div | ||
class="d-inline" | ||
> | ||
Noob Newbie | ||
</div> | ||
<div | ||
class="d-inline text-muted" | ||
> | ||
@newbie | ||
</div> | ||
</a> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
`; | ||
|
||
exports[`CommentBox component Should render empty commentBox 1`] = ` | ||
<div> | ||
<div | ||
class="showHide" | ||
> | ||
Hide conversation | ||
</div> | ||
<div | ||
class="commentBox bg-white d-auto" | ||
/> | ||
</div> | ||
`; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { default } from './CommentBox' |