small modal improvement

This commit is contained in:
Weves 2025-03-09 20:51:39 -07:00 committed by Chris Weaver
parent 8b5e8bd5b9
commit 104c4b9f4d

View File

@ -197,23 +197,21 @@ export default function ModifyCredential({
Are you sure you want to delete this credential? You cannot delete Are you sure you want to delete this credential? You cannot delete
credentials that are linked to live connectors. credentials that are linked to live connectors.
</p> </p>
<div className="mt-6 flex justify-between"> <div className="mt-6 flex gap-x-2 justify-end">
<button <Button
className="rounded py-1.5 px-2 bg-background-800 text-text-200"
onClick={async () => { onClick={async () => {
await onDeleteCredential(confirmDeletionCredential); await onDeleteCredential(confirmDeletionCredential);
setConfirmDeletionCredential(null); setConfirmDeletionCredential(null);
}} }}
> >
Yes Confirm
</button> </Button>
<button <Button
variant="outline"
onClick={() => setConfirmDeletionCredential(null)} onClick={() => setConfirmDeletionCredential(null)}
className="rounded py-1.5 px-2 bg-background-150 text-text-800"
> >
{" "} Cancel
No </Button>
</button>
</div> </div>
</> </>
</Modal> </Modal>