mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-06-26 16:01:09 +02: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
|
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>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user