Skip to content

Commit 827b3ee

Browse files
committed
Merge branch 'main' into greg/tool-3687-headless-sdk-functions
2 parents e2c6aab + 6fc6c6e commit 827b3ee

File tree

5 files changed

+23
-63
lines changed

5 files changed

+23
-63
lines changed

apps/dashboard/src/app/(dashboard)/(chain)/[chain_id]/[contractAddress]/cross-chain/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ export default async function Page(props: {
120120
const events = await getContractEvents({
121121
contract: twCloneFactoryContract,
122122
events: [ProxyDeployedEvent],
123-
blockRange: latestBlockNumber < 2000000n ? latestBlockNumber : 2000000n,
123+
blockRange: latestBlockNumber < 100000n ? latestBlockNumber : 100000n,
124124
});
125125
const event = events.find(
126126
(e) =>

apps/dashboard/src/app/team/[team_slug]/(team)/~/settings/members/ManageInvitesSection.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {
1818
DropdownMenuItem,
1919
DropdownMenuTrigger,
2020
} from "@/components/ui/dropdown-menu";
21+
import { BASE_URL } from "@/constants/env";
2122
import { useMutation } from "@tanstack/react-query";
2223
import { formatDate } from "date-fns";
2324
import { EllipsisIcon, MailIcon } from "lucide-react";
@@ -117,6 +118,7 @@ export function ManageInvitesSection(props: {
117118
className="border-border border-b last:border-b-0"
118119
>
119120
<InviteRow
121+
teamSlug={props.team.slug}
120122
invite={invite}
121123
client={props.client}
122124
userHasEditPermission={props.userHasEditPermission}
@@ -143,6 +145,7 @@ export function ManageInvitesSection(props: {
143145
}
144146

145147
function InviteRow(props: {
148+
teamSlug: string;
146149
invite: TeamInvite;
147150
userHasEditPermission: boolean;
148151
client: ThirdwebClient;
@@ -198,6 +201,7 @@ function InviteRow(props: {
198201
{/* Options */}
199202
{props.userHasEditPermission && (
200203
<ManageInviteButton
204+
teamSlug={props.teamSlug}
201205
invite={props.invite}
202206
userHasEditPermission={props.userHasEditPermission}
203207
deleteInvite={props.deleteInvite}
@@ -210,6 +214,7 @@ function InviteRow(props: {
210214
}
211215

212216
function ManageInviteButton(props: {
217+
teamSlug: string;
213218
invite: TeamInvite;
214219
userHasEditPermission: boolean;
215220
deleteInvite: (inviteId: string) => Promise<void>;
@@ -235,6 +240,18 @@ function ManageInviteButton(props: {
235240
</Button>
236241
</DropdownMenuTrigger>
237242
<DropdownMenuContent align="end" className="w-40">
243+
{props.invite.status === "pending" && (
244+
<DropdownMenuItem
245+
onClick={() => {
246+
navigator.clipboard.writeText(
247+
`${BASE_URL}/join/team/${props.teamSlug}/${props.invite.id}`,
248+
);
249+
toast.success("Invite link copied to clipboard");
250+
}}
251+
>
252+
Copy Invite Link
253+
</DropdownMenuItem>
254+
)}
238255
<DropdownMenuItem
239256
className="text-destructive focus:text-destructive"
240257
onClick={() => setShowDeleteDialog(true)}

apps/portal/src/app/connect/account-abstraction/infrastructure/page.mdx

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
import { createMetadata, AAChainList } from "@doc";
1+
import { createMetadata, DocImage } from "@doc";
2+
import SupportedChains from "../../../_images/supported-chains.png";
3+
24

35
export const metadata = createMetadata({
46
image: {
@@ -23,7 +25,8 @@ You can configure your client ID to restrict interactions only with your own con
2325

2426
With a thirdweb API key, you get access to bundler and paymaster infrastructure on the following chains:
2527

26-
<AAChainList />
28+
[View all supported chains with Account Abstraction](https://thirdweb.com/chainlist?service=account-abstraction).
29+
<DocImage src={SupportedChains} />
2730

2831
To support a chain not listed, [contact us](https://thirdweb.com/contact-us).
2932

apps/portal/src/components/Document/AAChainList.tsx

Lines changed: 0 additions & 59 deletions
This file was deleted.

apps/portal/src/components/Document/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export { ExpandableGrid } from "./ExpandableGrid";
2424
export { Stack } from "./Stack";
2525
export { createMetadata } from "./metadata";
2626
export { ConnectCard } from "./Cards/ConnectCard";
27-
export { AAChainList } from "./AAChainList";
2827
export { AuthList } from "./AuthList";
2928
export { FeatureCard } from "./FeatureCard";
3029
export { ApiEndpoint } from "./APIEndpointMeta/ApiEndpoint";

0 commit comments

Comments
 (0)