File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
common/CancelConfirmation Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -425,6 +425,8 @@ export const IncidentDirectives = () => {
425425 description = { "Are you sure you want to delete this directive?" }
426426 onClose = { handleDeleteDirectiveDialogClose }
427427 onConfirm = { handleDeleteDirectiveDialogConfirm }
428+ confirmBtnText = { "Yes, continue" }
429+ cancelBtnText = { "No, cancel" }
428430 />
429431 </ s . StyledOverlay >
430432 ) }
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import styled from "styled-components";
22import { heading2BoldTypography } from "../../common/App/typographies" ;
33import { AgentFlowChart } from "../IncidentDetails/AgentFlowChart" ;
44import { PromptInput } from "../common/PromptInput" ;
5+ import { TextArea } from "../common/PromptInput/styles" ;
56
67export const Container = styled . div `
78 padding: 24px;
@@ -33,7 +34,7 @@ export const StyledAgentFlowChart = styled(AgentFlowChart)`
3334export const StyledIncidentPromptInput = styled ( PromptInput ) `
3435 height: 105px;
3536
36- & > textarea {
37+ & ${ TextArea } {
3738 height: 100%;
3839
3940 &::placeholder {
@@ -47,7 +48,7 @@ export const StyledAgentPromptInput = styled(PromptInput)`
4748 ${ /* TODO: change to color from the theme */ "" }
4849 border: 1px solid #6063f6;
4950
50- & > textarea {
51+ & ${ TextArea } {
5152 height: 100%;
5253
5354 &::placeholder {
Original file line number Diff line number Diff line change @@ -8,7 +8,8 @@ export const CancelConfirmation = ({
88 onClose,
99 header,
1010 description,
11- cancelBtnText
11+ cancelBtnText = "Yes, cancel" ,
12+ confirmBtnText = "No, continue"
1213} : CancelConfirmationProps ) => {
1314 const handleConfirmButtonClick = ( ) => {
1415 onConfirm ( ) ;
@@ -34,12 +35,12 @@ export const CancelConfirmation = ({
3435 < s . ButtonsContainer >
3536 < NewButton
3637 buttonType = { "primary" }
37- label = { "No, continue" }
38+ label = { confirmBtnText }
3839 onClick = { handleCancelButtonClick }
3940 />
4041 < s . CancelButton
4142 buttonType = { "secondary" }
42- label = { cancelBtnText ?? "Yes, cancel" }
43+ label = { cancelBtnText }
4344 onClick = { handleConfirmButtonClick }
4445 />
4546 </ s . ButtonsContainer >
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ export interface CancelConfirmationProps {
22 header : string ;
33 description : string ;
44 cancelBtnText ?: string ;
5+ confirmBtnText ?: string ;
56 onClose : ( ) => void ;
67 onConfirm : ( ) => void ;
78}
You can’t perform that action at this time.
0 commit comments