mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-03-17 13:22:42 +01:00
small modal improvement
This commit is contained in:
parent
8b5e8bd5b9
commit
104c4b9f4d
@ -197,23 +197,21 @@ export default function ModifyCredential({
|
||||
Are you sure you want to delete this credential? You cannot delete
|
||||
credentials that are linked to live connectors.
|
||||
</p>
|
||||
<div className="mt-6 flex justify-between">
|
||||
<button
|
||||
className="rounded py-1.5 px-2 bg-background-800 text-text-200"
|
||||
<div className="mt-6 flex gap-x-2 justify-end">
|
||||
<Button
|
||||
onClick={async () => {
|
||||
await onDeleteCredential(confirmDeletionCredential);
|
||||
setConfirmDeletionCredential(null);
|
||||
}}
|
||||
>
|
||||
Yes
|
||||
</button>
|
||||
<button
|
||||
Confirm
|
||||
</Button>
|
||||
<Button
|
||||
variant="outline"
|
||||
onClick={() => setConfirmDeletionCredential(null)}
|
||||
className="rounded py-1.5 px-2 bg-background-150 text-text-800"
|
||||
>
|
||||
{" "}
|
||||
No
|
||||
</button>
|
||||
Cancel
|
||||
</Button>
|
||||
</div>
|
||||
</>
|
||||
</Modal>
|
||||
|
Loading…
x
Reference in New Issue
Block a user