Skip to content

Commit 8e73abb

Browse files
authored
fix: move mock data to appropriate directory (#193)
1 parent 4f3e21d commit 8e73abb

4 files changed

Lines changed: 189 additions & 189 deletions

File tree

app/(landing)/about/page.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ const AboutPage = () => {
2222
<Missionpage />
2323
<AboutUsDifferent />
2424

25-
2625
<Timeline />
2726
<OurTeam />
2827
<Partners />

components/campaigns/CampaignSummary.tsx

Lines changed: 2 additions & 83 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ import { formatDate } from '@/lib/utils';
2222
import { Button } from '../ui/button';
2323
import BackingHistory from './backing-history';
2424
import { sampleBackers } from '@/lib/data/backing-history-mock';
25+
import { backingHistory, milestones } from '@/lib/data/milestones';
2526

2627
const CampaignSummary = ({
2728
open,
@@ -35,42 +36,6 @@ const CampaignSummary = ({
3536
);
3637
const [openHistory, setOpenHistory] = useState<boolean>(false);
3738

38-
// Mock milestone data
39-
const milestones = [
40-
{
41-
id: '1',
42-
title: 'Project Planning & Research',
43-
description:
44-
'Complete market research, competitor analysis, and detailed project planning with timeline and resource allocation.',
45-
deliveryDate: new Date('2024-03-15'),
46-
fundPercentage: 20,
47-
},
48-
{
49-
id: '2',
50-
title: 'MVP Development',
51-
description:
52-
'Develop and test the minimum viable product with core features and basic functionality.',
53-
deliveryDate: new Date('2024-05-20'),
54-
fundPercentage: 40,
55-
},
56-
{
57-
id: '3',
58-
title: 'Beta Testing & Refinement',
59-
description:
60-
'Conduct comprehensive beta testing, gather user feedback, and implement necessary improvements.',
61-
deliveryDate: new Date('2024-07-10'),
62-
fundPercentage: 25,
63-
},
64-
{
65-
id: '4',
66-
title: 'Launch & Marketing',
67-
description:
68-
'Official product launch with marketing campaign and user acquisition strategy.',
69-
deliveryDate: new Date('2024-08-30'),
70-
fundPercentage: 15,
71-
},
72-
];
73-
7439
const toggle = (id: string) => {
7540
setExpandedMilestone(expandedMilestone === id ? null : id);
7641
};
@@ -80,53 +45,7 @@ const CampaignSummary = ({
8045
};
8146

8247
// Mock backing history data
83-
const backingHistory = [
84-
{
85-
id: '1',
86-
name: 'Collins Odumeje',
87-
wallet: 'GDS3...GB7',
88-
amount: 2300,
89-
time: '3s',
90-
avatar: 'https://github.com/shadcn.png',
91-
isVerified: true,
92-
},
93-
{
94-
id: '2',
95-
name: 'Collins Odumeje',
96-
wallet: 'GDS3...GB7',
97-
amount: 2300,
98-
time: '19d',
99-
avatar: 'https://github.com/shadcn.png',
100-
isVerified: true,
101-
},
102-
{
103-
id: '3',
104-
name: 'Collins Odumeje',
105-
wallet: 'GDS3...GB7',
106-
amount: 2300,
107-
time: '2w',
108-
avatar: 'https://github.com/shadcn.png',
109-
isVerified: true,
110-
},
111-
{
112-
id: '4',
113-
name: 'Anonymous',
114-
wallet: 'GDS3...GB7',
115-
amount: 2300,
116-
time: 'Aug 05, 2025',
117-
avatar: null,
118-
isVerified: false,
119-
},
120-
{
121-
id: '5',
122-
name: 'Collins Odumeje',
123-
wallet: 'GDS3...GB7',
124-
amount: 2300,
125-
time: 'Aug 05, 2025',
126-
avatar: 'https://github.com/shadcn.png',
127-
isVerified: true,
128-
},
129-
];
48+
13049
return (
13150
<>
13251
<BackingHistory

lib/data/milestones.ts

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
export const milestones = [
2+
{
3+
id: '1',
4+
title: 'Project Planning & Research',
5+
description:
6+
'Complete market research, competitor analysis, and detailed project planning with timeline and resource allocation.',
7+
deliveryDate: new Date('2024-03-15'),
8+
fundPercentage: 20,
9+
},
10+
{
11+
id: '2',
12+
title: 'MVP Development',
13+
description:
14+
'Develop and test the minimum viable product with core features and basic functionality.',
15+
deliveryDate: new Date('2024-05-20'),
16+
fundPercentage: 40,
17+
},
18+
{
19+
id: '3',
20+
title: 'Beta Testing & Refinement',
21+
description:
22+
'Conduct comprehensive beta testing, gather user feedback, and implement necessary improvements.',
23+
deliveryDate: new Date('2024-07-10'),
24+
fundPercentage: 25,
25+
},
26+
{
27+
id: '4',
28+
title: 'Launch & Marketing',
29+
description:
30+
'Official product launch with marketing campaign and user acquisition strategy.',
31+
deliveryDate: new Date('2024-08-30'),
32+
fundPercentage: 15,
33+
},
34+
];
35+
36+
export const backingHistory = [
37+
{
38+
id: '1',
39+
name: 'Collins Odumeje',
40+
wallet: 'GDS3...GB7',
41+
amount: 2300,
42+
time: '3s',
43+
avatar: 'https://github.com/shadcn.png',
44+
isVerified: true,
45+
},
46+
{
47+
id: '2',
48+
name: 'Collins Odumeje',
49+
wallet: 'GDS3...GB7',
50+
amount: 2300,
51+
time: '19d',
52+
avatar: 'https://github.com/shadcn.png',
53+
isVerified: true,
54+
},
55+
{
56+
id: '3',
57+
name: 'Collins Odumeje',
58+
wallet: 'GDS3...GB7',
59+
amount: 2300,
60+
time: '2w',
61+
avatar: 'https://github.com/shadcn.png',
62+
isVerified: true,
63+
},
64+
{
65+
id: '4',
66+
name: 'Anonymous',
67+
wallet: 'GDS3...GB7',
68+
amount: 2300,
69+
time: 'Aug 05, 2025',
70+
avatar: null,
71+
isVerified: false,
72+
},
73+
{
74+
id: '5',
75+
name: 'Collins Odumeje',
76+
wallet: 'GDS3...GB7',
77+
amount: 2300,
78+
time: 'Aug 05, 2025',
79+
avatar: 'https://github.com/shadcn.png',
80+
isVerified: true,
81+
},
82+
];

0 commit comments

Comments
 (0)