V2Wizard: Update wording on repo removal modal in Edit mode

This updates wording on a repo removal modal in Edit mode as per UX feedback.
This commit is contained in:
regexowl 2024-04-22 09:27:29 +02:00 committed by Lucas Garfield
parent 9f04b4f5e4
commit af5d99324d

View file

@ -394,7 +394,7 @@ const Repositories = () => {
return (
<Modal
titleIconVariant="warning"
title="Removing repositories is not recommended"
title="Removing repositories can lead to build failures"
isOpen={isRepoRemovalModalOpen}
onClose={handleCloseModalToggle}
width="50%"
@ -404,15 +404,15 @@ const Repositories = () => {
variant="primary"
onClick={handleConfirmRemovalModalToggle}
>
Remove repository
Remove anyway
</Button>,
<Button key="back" variant="link" onClick={handleCloseModalToggle}>
Back
</Button>,
]}
>
If you have added packages from this previously added repository,
removing it can lead to build failures.
We do not recommend removing any repositories if you have added packages
from them.
</Modal>
);
};
@ -425,7 +425,7 @@ const Repositories = () => {
<RemoveRepositoryModal />
{wizardMode === 'edit' && (
<Alert
title="Removing previously added repositories can lead to problems with selected packages"
title="Removing previously added repositories may lead to issues with selected packages"
variant="warning"
isPlain
isInline