mirror of
https://github.com/get-drexa/drive.git
synced 2026-02-02 07:31:18 +00:00
fix(drive-web): add share link item loading state
This commit is contained in:
@@ -40,6 +40,7 @@ import {
|
||||
} from "@/components/ui/dropdown-menu"
|
||||
import { Input } from "@/components/ui/input"
|
||||
import { Kbd } from "@/components/ui/kbd"
|
||||
import { LoadingSpinner } from "@/components/ui/loading-spinner"
|
||||
import {
|
||||
Popover,
|
||||
PopoverContent,
|
||||
@@ -336,7 +337,11 @@ function AddShareLinkListItem() {
|
||||
}}
|
||||
>
|
||||
<span className="bg-secondary rounded-md p-1.5 translate-y-px border border-border shadow-xs group-hover:bg-secondary">
|
||||
<PlusIcon size={16} />
|
||||
{isCreatingShare ? (
|
||||
<LoadingSpinner />
|
||||
) : (
|
||||
<PlusIcon size={16} />
|
||||
)}
|
||||
</span>
|
||||
Create share link
|
||||
</button>
|
||||
|
||||
Reference in New Issue
Block a user