File tree Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Expand file tree Collapse file tree 3 files changed +23
-9
lines changed Original file line number Diff line number Diff line change 2929 }
3030}
3131
32+ .btn-comment-edit {
33+ margin :2% 0 ;
34+ }
35+
3236.comment-form {
3337 margin : 16px 0px ;
3438}
Original file line number Diff line number Diff line change @@ -173,9 +173,11 @@ const Comments = (props) => {
173173 Reply
174174 </ Button >
175175 ) }
176- { data . user_story_comment_replies . length > 0 ? (
176+ < br />
177+ { data . user_story_comment_replies . length == 1 ? (
178+
177179 < Button
178- className = 'btn btn-default'
180+ className = 'btn btn-default btn-comment-edit '
179181 onClick = { ( ) => {
180182 toggleViewReplies (
181183 viewRepliesToggled ,
@@ -184,11 +186,23 @@ const Comments = (props) => {
184186 )
185187 } }
186188 >
187- View Replies ( { data . user_story_comment_replies . length } )
189+ { data . user_story_comment_replies . length } Reply
188190 </ Button >
189- ) : (
191+ ) : data . user_story_comment_replies . length == 0 ? (
190192 ''
191- ) }
193+ ) : ( < Button
194+ className = 'btn btn-default btn-comment-edit'
195+ onClick = { ( ) => {
196+ toggleViewReplies (
197+ viewRepliesToggled ,
198+ setViewRepliesToggled ,
199+ key
200+ )
201+ } }
202+ >
203+ { data . user_story_comment_replies . length } Replies
204+ </ Button > ) }
205+
192206 </ div >
193207 { viewRepliesToggled . find ( ( item ) => item === key + 1 ) &&
194208 data . user_story_comment_replies . map ( ( reply , key ) => (
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments