Skip to content

Commit 322a5de

Browse files
committed
lint fix
1 parent f25202d commit 322a5de

2 files changed

Lines changed: 15 additions & 15 deletions

File tree

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ describe(ScheduleActionsModalContent.name, () => {
5353
});
5454

5555
it('calls pause API, sends toast, and closes modal when confirmed', async () => {
56-
const { user, mockOnClose, getLatestRequestBody, waitForRequest } =
57-
setup({});
56+
const { user, mockOnClose, getLatestRequestBody, waitForRequest } = setup(
57+
{}
58+
);
5859

5960
await user.click(
6061
await screen.findByRole('button', { name: 'Mock pause schedule' })

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

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ export default function ScheduleActionsModalContent<
9090
...params,
9191
submissionData: action.modal.withForm
9292
? action.modal.transformFormDataToSubmission(data as FormData)
93-
: (action.getConfirmSubmissionData?.() ??
94-
(undefined as SubmissionData)),
93+
: action.getConfirmSubmissionData?.() ?? (undefined as SubmissionData),
9594
});
9695
};
9796

@@ -132,17 +131,17 @@ export default function ScheduleActionsModalContent<
132131
/>
133132
)}
134133
{error && (
135-
<Banner
136-
hierarchy={HIERARCHY.low}
137-
kind={BANNER_KIND.negative}
138-
overrides={overrides.banner}
139-
artwork={{
140-
icon: MdErrorOutline,
141-
}}
142-
>
143-
{error.message}
144-
</Banner>
145-
)}
134+
<Banner
135+
hierarchy={HIERARCHY.low}
136+
kind={BANNER_KIND.negative}
137+
overrides={overrides.banner}
138+
artwork={{
139+
icon: MdErrorOutline,
140+
}}
141+
>
142+
{error.message}
143+
</Banner>
144+
)}
146145
</styled.ModalBodyContent>
147146
</styled.ModalBody>
148147
<styled.ModalFooter>

0 commit comments

Comments
 (0)