File tree 1 file changed +3
-9
lines changed
gui/src/components/StepContainer
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -27,9 +27,6 @@ export default function ResponseActions({
27
27
( store : RootState ) => store . editModeState . isInEditMode ,
28
28
) ;
29
29
30
- // Only render delete button if there is more than one message
31
- const shouldRenderDelete = index !== 1 ;
32
-
33
30
if ( isInEditMode ) {
34
31
return < EditActions index = { index } item = { item } /> ;
35
32
}
@@ -46,19 +43,16 @@ export default function ResponseActions({
46
43
</ HeaderButtonWithToolTip >
47
44
) }
48
45
49
- { shouldRenderDelete && (
50
- < HeaderButtonWithToolTip text = "Delete" tabIndex = { - 1 } onClick = { onDelete } >
51
- < TrashIcon className = "h-3.5 w-3.5 text-gray-500" />
52
- </ HeaderButtonWithToolTip >
53
- ) }
46
+ < HeaderButtonWithToolTip text = "Delete" tabIndex = { - 1 } onClick = { onDelete } >
47
+ < TrashIcon className = "h-3.5 w-3.5 text-gray-500" />
48
+ </ HeaderButtonWithToolTip >
54
49
55
50
< CopyIconButton
56
51
tabIndex = { - 1 }
57
52
text = { stripImages ( item . message . content ) }
58
53
clipboardIconClassName = "h-3.5 w-3.5 text-gray-500"
59
54
checkIconClassName = "h-3.5 w-3.5 text-green-400"
60
55
/>
61
-
62
56
< FeedbackButtons item = { item } />
63
57
</ div >
64
58
) ;
You can’t perform that action at this time.
0 commit comments