Skip to content

Commit 52f2d26

Browse files
committed
feat: backing history
1 parent 04b0d70 commit 52f2d26

4 files changed

Lines changed: 617 additions & 174 deletions

File tree

app/user/backing-history/page.tsx

Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
'use client';
2+
3+
import { useState } from 'react';
4+
import { Button } from '@/components/ui/button';
5+
import BackingHistory from '@/components/flows/backing-history/backing-history';
6+
7+
// Sample data matching the images
8+
const sampleBackers = [
9+
{
10+
id: '1',
11+
name: 'Collins Odumeje',
12+
avatar: '/placeholder.svg?height=32&width=32',
13+
amount: 2300,
14+
date: new Date('2025-08-05'),
15+
walletId: 'GDS3...GB7',
16+
isAnonymous: false,
17+
},
18+
{
19+
id: '2',
20+
name: 'Collins Odumeje',
21+
avatar: '/placeholder.svg?height=32&width=32',
22+
amount: 2300,
23+
date: new Date('2025-08-05'),
24+
walletId: 'GDS3...GB7',
25+
isAnonymous: false,
26+
},
27+
{
28+
id: '3',
29+
name: 'Collins Odumeje',
30+
avatar: '/placeholder.svg?height=32&width=32',
31+
amount: 2300,
32+
date: new Date('2025-08-05'),
33+
walletId: 'GDS3...GB7',
34+
isAnonymous: false,
35+
},
36+
{
37+
id: '4',
38+
name: 'Anonymous',
39+
amount: 2300,
40+
date: new Date('2025-08-05'),
41+
walletId: 'GDS3...GB7',
42+
isAnonymous: true,
43+
},
44+
{
45+
id: '5',
46+
name: 'Collins Odumeje',
47+
avatar: '/placeholder.svg?height=32&width=32',
48+
amount: 2300,
49+
date: new Date('2025-08-05'),
50+
walletId: 'GDS3...GB7',
51+
isAnonymous: false,
52+
},
53+
{
54+
id: '6',
55+
name: 'Anonymous',
56+
amount: 2300,
57+
date: new Date('2025-08-05'),
58+
walletId: 'GDS3...GB7',
59+
isAnonymous: true,
60+
},
61+
{
62+
id: '7',
63+
name: 'Anonymous',
64+
amount: 2300,
65+
date: new Date('2025-08-05'),
66+
walletId: 'GDS3...GB7',
67+
isAnonymous: true,
68+
},
69+
{
70+
id: '8',
71+
name: 'Collins Odumeje',
72+
avatar: '/placeholder.svg?height=32&width=32',
73+
amount: 2300,
74+
date: new Date('2025-08-05'),
75+
walletId: 'GDS3...GB7',
76+
isAnonymous: false,
77+
},
78+
{
79+
id: '9',
80+
name: 'Anonymous',
81+
amount: 2300,
82+
date: new Date('2025-08-05'),
83+
walletId: 'GDS3...GB7',
84+
isAnonymous: true,
85+
},
86+
];
87+
88+
export default function Home() {
89+
const [showBackingHistory, setShowBackingHistory] = useState(false);
90+
91+
return (
92+
<div className='min-h-screen bg-background p-8'>
93+
<div className='max-w-4xl mx-auto'>
94+
<h1 className='text-3xl font-bold mb-8'>Crowdfunding Dashboard</h1>
95+
96+
<Button
97+
onClick={() => setShowBackingHistory(true)}
98+
className='bg-blue-600 hover:bg-blue-700'
99+
>
100+
View Backing History
101+
</Button>
102+
103+
<BackingHistory
104+
open={showBackingHistory}
105+
setOpen={setShowBackingHistory}
106+
backers={sampleBackers}
107+
/>
108+
</div>
109+
</div>
110+
);
111+
}

0 commit comments

Comments
 (0)