|
9 | 9 | import StatementList from '../../features/statements/components/StatementList'; |
10 | 10 | import { useEntries } from '../../features/statements/hooks/useEntries'; |
11 | 11 | import { Button } from '../../components/ui/button'; |
12 | | -import { Plus, Mail } from 'lucide-react'; |
| 12 | +import { Mail } from 'lucide-react'; |
13 | 13 | import StatementWizard from '../../features/wizard/components/StatementWizard'; |
14 | 14 | import ShareEmailModal from '../../components/modals/ShareEmailModal'; |
15 | 15 | import PrivacyModal from '../../components/modals/PrivacyModal'; |
@@ -54,35 +54,29 @@ const MainPage: React.FC = () => { |
54 | 54 | ? `${username} would like to share with ${managerName}` |
55 | 55 | : `${username}'s statements for sharing`} |
56 | 56 | </h1> |
57 | | - |
58 | | - <Button |
59 | | - onClick={handleNewStatement} |
60 | | - variant='pink' |
61 | | - className='flex items-center px-3 h-10 shadow-sm whitespace-nowrap self-start' |
62 | | - > |
63 | | - <Plus className='w-5 h-5 mr-1 flex-shrink-0' /> |
64 | | - <span>Add statement</span> |
65 | | - </Button> |
66 | 57 | </div> |
67 | 58 | </div> |
68 | 59 |
|
69 | 60 | <div className='container mx-auto px-4 flex-grow'> |
70 | | - <StatementList username={username} /> |
| 61 | + <StatementList |
| 62 | + username={username} |
| 63 | + onAddCustomStatement={handleNewStatement} |
| 64 | + /> |
71 | 65 | </div> |
72 | | - |
| 66 | + |
73 | 67 | {/* Footer with privacy links */} |
74 | | - <footer className="mt-auto pt-6 pb-4 bg-gray-50 border-t border-gray-200"> |
75 | | - <div className="container mx-auto px-4"> |
76 | | - <div className="flex flex-col sm:flex-row justify-center items-center text-xs text-gray-500 space-y-2 sm:space-y-0 sm:space-x-4"> |
77 | | - <button |
| 68 | + <footer className='mt-auto pt-6 pb-4 bg-gray-50 border-t border-gray-200'> |
| 69 | + <div className='container mx-auto px-4'> |
| 70 | + <div className='flex flex-col sm:flex-row justify-center items-center text-xs text-gray-500 space-y-2 sm:space-y-0 sm:space-x-4'> |
| 71 | + <button |
78 | 72 | onClick={() => setIsPrivacyModalOpen(true)} |
79 | | - className="hover:text-brand-pink hover:underline" |
| 73 | + className='hover:text-brand-pink hover:underline' |
80 | 74 | > |
81 | 75 | Privacy Policy |
82 | 76 | </button> |
83 | | - <button |
| 77 | + <button |
84 | 78 | onClick={() => setIsTermsModalOpen(true)} |
85 | | - className="hover:text-brand-pink hover:underline" |
| 79 | + className='hover:text-brand-pink hover:underline' |
86 | 80 | > |
87 | 81 | Terms of Use |
88 | 82 | </button> |
@@ -139,12 +133,12 @@ const MainPage: React.FC = () => { |
139 | 133 | {isShareModalOpen && ( |
140 | 134 | <ShareEmailModal onClose={() => setIsShareModalOpen(false)} /> |
141 | 135 | )} |
142 | | - |
| 136 | + |
143 | 137 | {/* Conditionally render the privacy modal */} |
144 | 138 | {isPrivacyModalOpen && ( |
145 | 139 | <PrivacyModal onClose={() => setIsPrivacyModalOpen(false)} /> |
146 | 140 | )} |
147 | | - |
| 141 | + |
148 | 142 | {/* Conditionally render the terms modal */} |
149 | 143 | {isTermsModalOpen && ( |
150 | 144 | <TermsModal onClose={() => setIsTermsModalOpen(false)} /> |
|
0 commit comments