Skip to content

Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.

Added loading spinner

Ashish Viradiya482d9270d38f
diff --git a/components/sidebar/team-switcher.tsx b/components/sidebar/team-switcher.tsx
index ac796b3e..5a51eac3 100644
--- a/components/sidebar/team-switcher.tsx
+++ b/components/sidebar/team-switcher.tsx
@@ -128,7 +128,11 @@ export function TeamSwitcher({
</DropdownMenu>
</SidebarMenuItem>
<SidebarMenuItem>
- {activeTeam.plan === "free" ? (
+ {loading ? (
+ <Button type="button" variant="outline" className="h-12 w-12 p-1">
+ <Loader className="animate-spin" />
+ </Button>
+ ) : activeTeam.plan === "free" ? (
<UpgradePlanModal
clickedPlan={PlanEnum.Pro}
trigger={"invite_team_members"}