Skip to content

Commit a536794

Browse files
committed
Fix dialog button labels
1 parent d7256e5 commit a536794

File tree

4 files changed

+10
-5
lines changed

4 files changed

+10
-5
lines changed

src/components/Agentic/IncidentDirectives/index.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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
)}

src/components/Agentic/IncidentTemplate/styles.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import styled from "styled-components";
22
import { heading2BoldTypography } from "../../common/App/typographies";
33
import { AgentFlowChart } from "../IncidentDetails/AgentFlowChart";
44
import { PromptInput } from "../common/PromptInput";
5+
import { TextArea } from "../common/PromptInput/styles";
56

67
export const Container = styled.div`
78
padding: 24px;
@@ -33,7 +34,7 @@ export const StyledAgentFlowChart = styled(AgentFlowChart)`
3334
export 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 {

src/components/common/CancelConfirmation/index.tsx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff 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>

src/components/common/CancelConfirmation/types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)