Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
Show all changes
103 commits
Select commit Hold shift + click to select a range
31a8ad5
Transfer NFTs
prxt6529 Oct 9, 2025
cb8b9e0
WIP
prxt6529 Oct 10, 2025
974c050
Merge branch 'main' into transfer-nfts
prxt6529 Oct 10, 2025
4e81eb0
WIP
prxt6529 Oct 13, 2025
18b5256
WIP
prxt6529 Oct 13, 2025
e9f3511
WIP
prxt6529 Oct 13, 2025
2de200f
WIP - Test fixes
prxt6529 Oct 13, 2025
24f10ff
Merge branch 'main' into transfer-nfts
prxt6529 Oct 13, 2025
cb4578a
WIP
prxt6529 Oct 13, 2025
2e08782
Merge branch 'main' into transfer-nfts
prxt6529 Oct 14, 2025
cb94d0d
WIP
prxt6529 Oct 14, 2025
146c509
WIP
prxt6529 Oct 14, 2025
7fc39e1
WIP
prxt6529 Oct 14, 2025
69f5cc6
WIP
prxt6529 Oct 14, 2025
b626c11
WIP
prxt6529 Oct 14, 2025
489c9ac
WIP
prxt6529 Oct 15, 2025
92b743c
WIP
prxt6529 Oct 15, 2025
24fc557
Merge branch 'main' into transfer-nfts
prxt6529 Oct 15, 2025
520c4b2
WIP
prxt6529 Oct 15, 2025
1178c0a
WIP
prxt6529 Oct 15, 2025
8059d58
WIP
prxt6529 Oct 15, 2025
90cfe3f
WIP
prxt6529 Oct 15, 2025
af736a7
WIP
prxt6529 Oct 15, 2025
4cc12ba
WIP
prxt6529 Oct 15, 2025
5f23d7a
WIP
prxt6529 Oct 15, 2025
6e4a8d7
WIP
prxt6529 Oct 15, 2025
3eb7784
WIP
prxt6529 Oct 15, 2025
acebea1
WIP
prxt6529 Oct 15, 2025
fa62c5e
WIP
prxt6529 Oct 15, 2025
e7a574c
Wip
prxt6529 Oct 15, 2025
f1a2c75
Merge branch 'main' into transfer-nfts
prxt6529 Oct 15, 2025
5b13d29
WIP
prxt6529 Oct 15, 2025
f6c0a2d
WIP
prxt6529 Oct 15, 2025
7201a5a
WIP
prxt6529 Oct 15, 2025
0eb3142
WIP
prxt6529 Oct 15, 2025
08575d9
WIP
prxt6529 Oct 15, 2025
da6dedf
Merge branch 'main' into transfer-nfts
prxt6529 Oct 15, 2025
35109f9
Merge branch 'main' into transfer-nfts
prxt6529 Oct 16, 2025
ecd1e25
Merge branch 'main' into transfer-nfts
prxt6529 Oct 21, 2025
a23343a
Merge branch 'main' into transfer-nfts
prxt6529 Oct 24, 2025
397a385
Merge branch 'main' into transfer-nfts
prxt6529 Oct 27, 2025
bb79b29
WIP
prxt6529 Oct 27, 2025
e676846
Merge branch 'main' into transfer-nfts
prxt6529 Oct 29, 2025
4333b9f
Merge branch 'main' into transfer-nfts
prxt6529 Oct 29, 2025
04f91d0
WIP
prxt6529 Oct 29, 2025
8d8492f
WIP
prxt6529 Oct 29, 2025
eb10583
WIP
prxt6529 Oct 29, 2025
e7e2af5
Merge branch 'main' into transfer-nfts
prxt6529 Oct 29, 2025
0af0de5
WIP
prxt6529 Oct 29, 2025
f8cff86
WIP
prxt6529 Oct 29, 2025
39bf208
WIP
prxt6529 Oct 29, 2025
f2c3e7b
WIP
prxt6529 Oct 29, 2025
309c397
Merge branch 'main' into transfer-nfts
prxt6529 Oct 30, 2025
7a690be
WIP
prxt6529 Oct 31, 2025
5cd0d78
Merge branch 'main' into transfer-nfts
prxt6529 Oct 31, 2025
6059a82
Merge branch 'main' into transfer-nfts
prxt6529 Oct 31, 2025
6ec7db2
Merge branch 'main' into transfer-nfts
prxt6529 Nov 3, 2025
ee23408
WIP
prxt6529 Nov 3, 2025
c3c12fe
WIP
prxt6529 Nov 3, 2025
020442e
WIP
prxt6529 Nov 3, 2025
a4abc8f
WIP
prxt6529 Nov 3, 2025
2ede5ce
WIP
prxt6529 Nov 3, 2025
6848e9b
WIP
prxt6529 Nov 3, 2025
326750e
WIP
prxt6529 Nov 3, 2025
2b85e9e
WIP
prxt6529 Nov 3, 2025
61ff776
WIP
prxt6529 Nov 3, 2025
88af818
WIP
prxt6529 Nov 3, 2025
d1a239b
WIP - tests fix
prxt6529 Nov 3, 2025
7be8465
WIP
prxt6529 Nov 3, 2025
93d8bba
WIP
prxt6529 Nov 3, 2025
6fcc6fe
WIP
prxt6529 Nov 3, 2025
43b4925
WIP
prxt6529 Nov 3, 2025
7925a28
WIP - responsiveness
prxt6529 Nov 3, 2025
e53cee1
WIP
prxt6529 Nov 4, 2025
9a235a9
WIP
prxt6529 Nov 4, 2025
3e70503
Merge branch 'main' into transfer-nfts
prxt6529 Nov 4, 2025
fe697a7
WIP
prxt6529 Nov 4, 2025
8c47559
WIP
prxt6529 Nov 4, 2025
f712786
WIP
prxt6529 Nov 4, 2025
2d3caed
WIP
prxt6529 Nov 4, 2025
f5f9cfd
WIP
prxt6529 Nov 5, 2025
632d0d4
WIP
prxt6529 Nov 5, 2025
4bf4b42
WIP
prxt6529 Nov 5, 2025
6e612da
WIP
prxt6529 Nov 5, 2025
d5df619
WIP
prxt6529 Nov 5, 2025
85d33c8
WIP
prxt6529 Nov 5, 2025
9af4009
WIP - Warning banner
prxt6529 Nov 5, 2025
900e0b2
WIP
prxt6529 Nov 5, 2025
28fed79
WIP
prxt6529 Nov 5, 2025
708295d
WIP
prxt6529 Nov 5, 2025
bbcaa59
WIP
prxt6529 Nov 5, 2025
ca067ef
WIP
prxt6529 Nov 5, 2025
fb356f0
WIP
prxt6529 Nov 5, 2025
f58a862
WIP
prxt6529 Nov 5, 2025
192ec2b
WIP
prxt6529 Nov 5, 2025
3003141
WIP
prxt6529 Nov 5, 2025
5b35d62
WIP
prxt6529 Nov 5, 2025
e228844
WIP
prxt6529 Nov 5, 2025
8263cd3
Merge branch 'main' into transfer-nfts
prxt6529 Nov 5, 2025
078d2e0
WIP
prxt6529 Nov 5, 2025
054bdc8
WIP
prxt6529 Nov 5, 2025
128b1dd
WIP
prxt6529 Nov 5, 2025
021bec0
WIP
prxt6529 Nov 5, 2025
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
19 changes: 15 additions & 4 deletions app/[user]/_lib/userTabPageFactory.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { TransferProvider } from "@/components/nft-transfer/TransferState";
import { getAppMetadata } from "@/components/providers/metadata";
import UserPageLayout from "@/components/user/layout/UserPageLayout";
import type { ApiIdentity } from "@/generated/models/ObjectSerializer";
Expand All @@ -16,9 +17,15 @@ type FactoryArgs = {
subroute: string;
metaLabel: string;
Tab: (props: TabProps) => React.JSX.Element;
enableTransfer?: boolean;
};

export function createUserTabPage({ subroute, metaLabel, Tab }: FactoryArgs) {
export function createUserTabPage({
subroute,
metaLabel,
Tab,
enableTransfer,
}: FactoryArgs) {
async function Page({
params,
searchParams,
Expand Down Expand Up @@ -50,11 +57,15 @@ export function createUserTabPage({ subroute, metaLabel, Tab }: FactoryArgs) {
redirect(needsRedirect.redirect.destination);
}

return (
<UserPageLayout profile={profile}>
const TabComponent = enableTransfer ? (
<TransferProvider>
<Tab profile={profile} />
</UserPageLayout>
</TransferProvider>
) : (
<Tab profile={profile} />
);

return <UserPageLayout profile={profile}>{TabComponent}</UserPageLayout>;
}

async function generateMetadata({
Expand Down
1 change: 1 addition & 0 deletions app/[user]/collected/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ const { Page, generateMetadata } = createUserTabPage({
subroute: "collected",
metaLabel: "Collected",
Tab: UserPageCollected,
enableTransfer: true,
});

export default Page;
Expand Down
Loading