Skip to content

Commit 68740de

Browse files
authored
Update header.tsx (boundlessfi#185)
1 parent 3599c33 commit 68740de

1 file changed

Lines changed: 1 addition & 72 deletions

File tree

components/layout/header.tsx

Lines changed: 1 addition & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -6,77 +6,15 @@ import { BoundlessButton } from '../buttons';
66
import { Plus, Search, Menu } from 'lucide-react';
77
import { SidebarTrigger } from '../ui/sidebar';
88
import Image from 'next/image';
9-
// import BoundlessSheet from '../sheet/boundless-sheet';
109
import { motion } from 'framer-motion';
1110
import { fadeInUp, slideInFromLeft, slideInFromRight } from '@/lib/motion';
1211
import WalletConnectButton from '../wallet/WalletConnectButton';
13-
// import ProjectSubmissionForm from '../project/ProjectSubmissionForm';
14-
// import ProjectSubmissionLoading from '../project/ProjectSubmissionLoading';
15-
// import ProjectSubmissionSuccess from '../project/ProjectSubmissionSuccess';
16-
// import { Stepper } from '../stepper';
1712
import { ProjectSheetFlow } from '../project';
1813
import { useProjectSheetStore } from '@/lib/stores/project-sheet-store';
1914

20-
// type Step = {
21-
// title: string;
22-
// description: string;
23-
// state: 'pending' | 'active' | 'completed';
24-
// };
25-
26-
// const initialSteps: Step[] = [
27-
// {
28-
// title: 'Initialize',
29-
// description: 'Submit your project idea to kickstart your campaign journey.',
30-
// state: 'active',
31-
// },
32-
// {
33-
// title: 'Project Details',
34-
// description: 'Provide detailed information about your project.',
35-
// state: 'pending',
36-
// },
37-
// {
38-
// title: 'Review & Submit',
39-
// description: 'Review your submission and finalize your entry.',
40-
// state: 'pending',
41-
// },
42-
// ];
43-
4415
const Header = () => {
4516
const [open, setOpen] = useState(false);
4617
const sheet = useProjectSheetStore();
47-
// const [submissionStatus, setSubmissionStatus] = useState('idle');
48-
// const [steps, setSteps] = useState<Step[]>(initialSteps);
49-
50-
// const handleSuccess = () => {
51-
// setSubmissionStatus('success');
52-
// setSteps(prevSteps =>
53-
// prevSteps.map((step, index) => {
54-
// if (index === 0) {
55-
// return { ...step, state: 'completed' };
56-
// }
57-
// if (index === 1) {
58-
// return { ...step, state: 'active' };
59-
// }
60-
// return step;
61-
// })
62-
// );
63-
// };
64-
65-
// const renderContent = () => {
66-
// switch (submissionStatus) {
67-
// case 'submitting':
68-
// return <ProjectSubmissionLoading />;
69-
// case 'success':
70-
// return <ProjectSubmissionSuccess />;
71-
// default:
72-
// return (
73-
// <ProjectSubmissionForm
74-
// onSuccess={handleSuccess}
75-
// setSubmissionStatus={setSubmissionStatus}
76-
// />
77-
// );
78-
// }
79-
// };
8018

8119
return (
8220
<motion.header
@@ -169,16 +107,7 @@ const Header = () => {
169107
sheet.setOpen(o);
170108
}}
171109
/>
172-
{/* <BoundlessSheet open={open} setOpen={setOpen}>
173-
<div className='flex justify-between'>
174-
<div className='flex-1'>
175-
<Stepper steps={steps} />
176-
</div>
177-
<div className='flex-1'>
178-
<div className='flex-1'>{renderContent()}</div>
179-
</div>
180-
</div>
181-
</BoundlessSheet> */}
110+
182111
</motion.header>
183112
);
184113
};

0 commit comments

Comments
 (0)