Skip to content

Commit

Permalink
sonar warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
usavkov-epam committed Dec 19, 2024
1 parent 93b9d26 commit 977251a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const DelayClaimsModal = ({
}) => {
const { reset } = useForm();
const intl = useIntl();

const modalLabel = intl.formatMessage(
{ id: 'stripes-acq-components.claiming.modal.delayClaim.heading' },
{ count: claimsCount },
Expand All @@ -45,6 +46,7 @@ const DelayClaimsModal = ({
<FormattedMessage id="stripes-acq-components.FormFooter.cancel" />
</Button>
);

const end = (
<Button
buttonStyle="primary"
Expand Down
18 changes: 10 additions & 8 deletions lib/claiming/components/modals/SendClaimsModal/SendClaimsModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ const SendClaimsModal = ({
open,
message,
}) => {
const { reset } = useForm();
const intl = useIntl();
const { reset } = useForm();

const modalLabel = intl.formatMessage(
{ id: 'stripes-acq-components.claiming.modal.sendClaim.heading' },
{ count: claimsCount },
Expand All @@ -42,21 +43,22 @@ const SendClaimsModal = ({
reset();
}, [onCancel, reset]);

const start = (
const end = (
<Button
buttonStyle="primary"
marginBottom0
onClick={handleCancel}
onClick={handleSubmit}
>
<FormattedMessage id="stripes-acq-components.FormFooter.cancel" />
<FormattedMessage id="stripes-acq-components.FormFooter.save" />
</Button>
);
const end = (

const start = (
<Button
buttonStyle="primary"
marginBottom0
onClick={handleSubmit}
onClick={handleCancel}
>
<FormattedMessage id="stripes-acq-components.FormFooter.save" />
<FormattedMessage id="stripes-acq-components.FormFooter.cancel" />
</Button>
);

Expand Down

0 comments on commit 977251a

Please sign in to comment.