chore: show loader when deleting a question or comment

This commit is contained in:
Rotimi Best
2023-12-13 14:28:10 +03:00
parent 60a3de662e
commit ed5e6fab3b
3 changed files with 30 additions and 4 deletions
@@ -7,6 +7,7 @@
export let onCancel = () => {};
export let open = false;
export let isQuestion = false;
export let isDeleting = false;
</script>
<Modal
@@ -32,6 +33,7 @@
variant={VARIANTS.CONTAINED}
label="Yes, delete"
onClick={onDelete}
isLoading={isDeleting}
/>
</div>
</div>