Skip to content

Commit ba9b1ac

Browse files
committed
remove link
1 parent 7d196c7 commit ba9b1ac

5 files changed

Lines changed: 2 additions & 40 deletions

File tree

src/views/schedule-actions/config/schedule-actions.config.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import {
1212
} from '../schedule-actions.types';
1313

1414
import { pauseScheduleBannerIcon } from './schedule-actions-banner-icons';
15-
import { PAUSE_SCHEDULE_MODAL_BANNER_MESSAGE } from './schedule-actions.constants';
1615

1716
const pauseScheduleActionConfig: ScheduleAction<
1817
PauseScheduleResponse,
@@ -26,7 +25,8 @@ const pauseScheduleActionConfig: ScheduleAction<
2625
banner: {
2726
kind: 'warning',
2827
icon: pauseScheduleBannerIcon,
29-
render: () => PAUSE_SCHEDULE_MODAL_BANNER_MESSAGE,
28+
render: () =>
29+
'Pausing stops new executions but does not stop workflows already in progress.',
3030
},
3131
withForm: true,
3232
form: ScheduleActionPauseForm,
@@ -49,11 +49,6 @@ const resumeScheduleActionConfig: ScheduleAction<UnpauseScheduleResponse> = {
4949
label: 'Resume',
5050
subtitle: 'Resume a paused schedule',
5151
modal: {
52-
text: 'Resumes the schedule so new workflow runs can be triggered again.',
53-
docsLink: {
54-
text: 'Read more about schedules',
55-
href: 'https://cadenceworkflow.io/docs/concepts/schedules',
56-
},
5752
withForm: false,
5853
},
5954
icon: MdPlayCircleOutline,

src/views/schedule-actions/config/schedule-actions.constants.ts

Lines changed: 0 additions & 2 deletions
This file was deleted.

src/views/schedule-actions/schedule-actions-modal-content/schedule-actions-modal-content.styles.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import { styled as createStyled, type Theme, withStyle } from 'baseui';
22
import { type BannerOverrides } from 'baseui/banner';
3-
import { StyledLink } from 'baseui/link';
43
import { ModalBody, ModalFooter, ModalHeader } from 'baseui/modal';
54
import { type StyleObject } from 'styletron-react';
65

@@ -28,13 +27,6 @@ export const styled = {
2827
display: 'flex',
2928
justifyContent: 'space-between',
3029
}),
31-
Link: withStyle(StyledLink, ({ $theme }: { $theme: Theme }) => ({
32-
alignSelf: 'start',
33-
...$theme.typography.LabelSmall,
34-
display: 'flex',
35-
alignItems: 'center',
36-
columnGap: $theme.sizing.scale100,
37-
})),
3830
};
3931

4032
export const overrides = {

src/views/schedule-actions/schedule-actions-modal-content/schedule-actions-modal-content.tsx

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -108,14 +108,6 @@ export default function ScheduleActionsModalContent<
108108
});
109109
};
110110

111-
const modalText = action.modal.text ? (
112-
Array.isArray(action.modal.text) ? (
113-
action.modal.text.map((text, index) => <p key={index}>{text}</p>)
114-
) : (
115-
<p>{action.modal.text}</p>
116-
)
117-
) : null;
118-
119111
const modalBanner = action.modal.banner ? (
120112
<Banner
121113
hierarchy={HIERARCHY.low}
@@ -153,16 +145,6 @@ export default function ScheduleActionsModalContent<
153145
</div>
154146
)}
155147
<styled.ModalBodyContent>
156-
{modalText}
157-
{action.modal.docsLink && (
158-
<styled.Link
159-
href={action.modal.docsLink.href}
160-
target="_blank"
161-
rel="noreferrer"
162-
>
163-
{action.modal.docsLink.text}
164-
</styled.Link>
165-
)}
166148
{action.modal.withForm && Form && (
167149
<Form
168150
fieldErrors={validationErrors}

src/views/schedule-actions/schedule-actions.types.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,6 @@ export type ScheduleAction<
9999
label: string;
100100
subtitle: string;
101101
modal: {
102-
text?: string | string[];
103-
docsLink?: {
104-
text: string;
105-
href: string;
106-
};
107102
banner?: ScheduleActionModalBanner;
108103
} & ScheduleActionModalForm<FormData, SubmissionData>;
109104
icon: ScheduleActionIcon;

0 commit comments

Comments
 (0)