Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ import { useDashboardRouter } from "@/lib/DashboardRouter";
import { cn } from "@/lib/utils";
import { LazyCreateProjectDialog } from "components/settings/ApiKeys/Create/LazyCreateAPIKeyDialog";
import { formatDate } from "date-fns";
import { PlusIcon, SearchIcon } from "lucide-react";
import { useTrack } from "hooks/analytics/useTrack";
import { PlusIcon, SearchIcon, UserPlus } from "lucide-react";
import Link from "next/link";
import { useMemo, useState } from "react";
import type { ThirdwebClient } from "thirdweb";
Expand Down Expand Up @@ -119,6 +120,9 @@ export function TeamProjectsPage(props: {
createProject={() => setIsCreateProjectDialogOpen(true)}
teamMembersSettingsPath={`/team/${props.team.slug}/~/settings/members`}
/>
<Link href={`/team/${props.team.slug}/~/settings/members`}>
<ShareButton />
</Link>
</div>
</div>
</div>
Expand Down Expand Up @@ -279,6 +283,29 @@ function AddNewButton(props: {
);
}

function ShareButton() {
//track event click
const trackEvent = useTrack();
return (
<Button
variant="default"
className="absolute top-0 right-0 gap-2 lg:static"
onClick={() =>
trackEvent({
category: "inviteTeam",
action: "click",
label: "invite-team",
})
}
>
<UserPlus className="size-4" />
<span>
<span className="hidden lg:inline">Invite</span>to Team
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There's a missing space between "Invite" and "to Team" in the text content, which will render as "InvitetoTeam" in the UI. Adding a space after </span> would fix this display issue:

<span className="hidden lg:inline">Invite</span> to Team
Suggested change
<span className="hidden lg:inline">Invite</span>to Team
<span className="hidden lg:inline">Invite</span> to Team

Spotted by Diamond

Is this helpful? React 👍 or 👎 to let us know.

</span>
</Button>
);
}

function SelectBy(props: {
value: SortById;
onChange: (value: SortById) => void;
Expand Down
Loading