File tree Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Expand file tree Collapse file tree 1 file changed +16
-9
lines changed Original file line number Diff line number Diff line change @@ -355,7 +355,9 @@ function ProgramFeedCard({
355
355
} ,
356
356
} }
357
357
>
358
- < Flex gap = { 2 } width = "full" >
358
+ < Flex gap = { 2 } width = "full"
359
+ marginBottom = { 2 }
360
+ >
359
361
< Tooltip
360
362
label = {
361
363
user && program . trainer === user . username ? null : (
@@ -408,17 +410,22 @@ function ProgramFeedCard({
408
410
>
409
411
Start Practicing
410
412
</ Button >
411
- < Button
412
- variant = 'outline'
413
- colorScheme = 'purple'
414
- leftIcon = { < ChatIcon /> }
415
- onClick = { ( ) => onFeedbackOpen ( ) }
416
- >
417
- Give Feedback
418
- </ Button >
419
413
</ Flex >
420
414
) }
421
415
</ Flex >
416
+ {
417
+ isUserJoined && user && program . trainer !== user . username && (
418
+ < Button
419
+ variant = 'outline'
420
+ colorScheme = 'purple'
421
+ leftIcon = { < ChatIcon /> }
422
+ onClick = { ( ) => onFeedbackOpen ( ) }
423
+ width = { "full" }
424
+ >
425
+ Give Feedback
426
+ </ Button >
427
+ )
428
+ }
422
429
</ CardFooter >
423
430
</ Card >
424
431
< FeedbackModal
You can’t perform that action at this time.
0 commit comments