feat: resolved minor issues with dashboard v3 on feedback

This commit is contained in:
Akhil Mohan
2023-09-28 21:28:43 +05:30
parent 5450c1126a
commit 50efb8b8bd
5 changed files with 20 additions and 14 deletions
@@ -298,15 +298,6 @@ export const SecretDropzone = ({
<ModalContent
title={isUploadedDuplicateSecretsEmpty ? "Confirmation" : "Duplicate Secrets!!"}
footerContent={[
<Button
key="keep-old-btn"
className="mr-4"
onClick={() => handlePopUpClose("overlapKeyWarning")}
variant="outline_bg"
isDisabled={isSubmitting}
>
Keep old
</Button>,
<Button
isLoading={isSubmitting}
isDisabled={isSubmitting}
@@ -314,12 +305,21 @@ export const SecretDropzone = ({
key="overwrite-btn"
onClick={handleSaveSecrets}
>
{isUploadedDuplicateSecretsEmpty ? "Create" : "Overwrite"}
{isUploadedDuplicateSecretsEmpty ? "Upload" : "Overwrite"}
</Button>,
<Button
key="keep-old-btn"
className="mr-4"
onClick={() => handlePopUpClose("overlapKeyWarning")}
variant="outline_bg"
isDisabled={isSubmitting}
>
Cancel
</Button>
]}
>
{isUploadedDuplicateSecretsEmpty ? (
<div>Uploaded secrets will be created.</div>
<div>Upload secrets from this file</div>
) : (
<div className="flex flex-col space-y-2 text-gray-300">
<div>Your file contains following duplicate secrets</div>