Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

feat: Add loading spinner to shareable link button

Richie McIlroyee0c1c50ed05
diff --git a/apps/desktop/src/routes/editor/Editor.tsx b/apps/desktop/src/routes/editor/Editor.tsx
index 2bbd5dd46..e6c631a69 100644
--- a/apps/desktop/src/routes/editor/Editor.tsx
+++ b/apps/desktop/src/routes/editor/Editor.tsx
@@ -551,8 +551,16 @@ function ShareButton() {
<Button
disabled={uploadVideo.isPending}
onClick={() => uploadVideo.mutate()}
+ class="flex items-center space-x-1"
>
- Create Shareable Link
+ {uploadVideo.isPending ? (
+ <>
+ <span>Uploading Cap</span>
+ <IconLucideLoaderCircle class="size-[1rem] animate-spin" />
+ </>
+ ) : (
+ "Create Shareable Link"
+ )}
</Button>
}
>