Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

ask for confirmation

Kiran Ke6d0ec062708
diff --git a/apps/web/ui/analytics/share-popover.tsx b/apps/web/ui/analytics/share-popover.tsx
index 5f718d00f8..4eba9ce40d 100644
--- a/apps/web/ui/analytics/share-popover.tsx
+++ b/apps/web/ui/analytics/share-popover.tsx
@@ -58,6 +58,10 @@ export default function SharePopover() {
return;
}
+ if (!confirm("Are you sure you want to remove the shared dashboard?")) {
+ return;
+ }
+
setRemoving(true);
const res = await fetch(
@@ -122,14 +126,14 @@ export default function SharePopover() {
</button>
</div>
- <div className="flex justify-start">
- <Button
- text={removing ? "Removing..." : "Remove link"}
- variant="outline"
- className="w-fit"
- loading={removing}
+ <div className="mt-1 flex">
+ <button
+ className="w-fit rounded-md border border-gray-200 px-2 py-1 hover:bg-gray-50 active:bg-gray-100"
onClick={handleRemove}
- />
+ disabled={removing}
+ >
+ {removing ? "Removing..." : "Remove link"}
+ </button>
</div>
</>
) : (