fix(shareModal/index.tsx): fix typo in unavailableNames variable name to unavailableNames for better readability
refactor(shareModal/index.tsx): update ConfirmationModal title to "Replace" and remove titleHeader prop for consistency refactor(shareModal/index.tsx): update ConfirmationModal confirmationText to "Replace" for better clarity refactor(shareModal/index.tsx): update ConfirmationModal icon to "SaveAll" for better visual representation refactor(shareModal/index.tsx): update ConfirmationModal size to "x-small" for better UI consistency refactor(shareModal/index.tsx): update ConfirmationModal index to 6 for proper positioning in the modal stack refactor(shareModal/index.tsx): update ConfirmationModal onCancel prop to an empty function for consistency
This commit is contained in:
parent
7d833b1f97
commit
3b988da630
1 changed files with 8 additions and 8 deletions
|
|
@ -166,21 +166,21 @@ export default function ShareModal({
|
||||||
<>
|
<>
|
||||||
{unavaliableNames.find((element) => element.name === name) ? (
|
{unavaliableNames.find((element) => element.name === name) ? (
|
||||||
<ConfirmationModal
|
<ConfirmationModal
|
||||||
title="Update"
|
title={`Replace`}
|
||||||
titleHeader={name}
|
|
||||||
modalContentTitle="Attention!"
|
|
||||||
cancelText="Cancel"
|
cancelText="Cancel"
|
||||||
confirmationText="Update"
|
confirmationText="Replace"
|
||||||
icon={"Group"}
|
size={"x-small"}
|
||||||
|
icon={"SaveAll"}
|
||||||
|
index={6}
|
||||||
onConfirm={() => {
|
onConfirm={() => {
|
||||||
handleUpdateComponent();
|
handleUpdateComponent();
|
||||||
}}
|
}}
|
||||||
size={"x-small"}
|
onCancel={() => {}}
|
||||||
>
|
>
|
||||||
<ConfirmationModal.Content>
|
<ConfirmationModal.Content>
|
||||||
<span>
|
<span>
|
||||||
Are you sure you want to update this{" "}
|
It seems {name} already exists. Do you want to replace it with
|
||||||
{nameComponent.toLowerCase()}?
|
the current?
|
||||||
</span>
|
</span>
|
||||||
<br></br>
|
<br></br>
|
||||||
<span className=" text-xs text-destructive ">
|
<span className=" text-xs text-destructive ">
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue