@@ -22,6 +22,7 @@ import { formatDate } from '@/lib/utils';
2222import { Button } from '../ui/button' ;
2323import BackingHistory from './backing-history' ;
2424import { sampleBackers } from '@/lib/data/backing-history-mock' ;
25+ import { backingHistory , milestones } from '@/lib/data/milestones' ;
2526
2627const 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
0 commit comments