oops. resolve build errors
- SHA
cbfc38f0e1e41f9a2913bfaa04e89366016fc923- Parents
-
06ebec9 - Tree
de2d8c0
cbfc38f
cbfc38f0e1e41f9a2913bfaa04e89366016fc92306ebec9
de2d8c0| Status | File | + | - |
|---|---|---|---|
| M |
components/ContributionForm.tsx
|
2 | 2 |
components/ContributionForm.tsxmodified@@ -222,7 +222,7 @@ export default function ContributionForm({ personId, personName, onSuccess }: Co | ||
| 222 | 222 | rows={6} |
| 223 | 223 | className="w-full px-3 py-2 border border-gray-300 rounded focus:outline-none focus:border-vmi-gold" |
| 224 | 224 | placeholder="Share any additional information about this person's service, life, or sacrifice..." |
| 225 | - required={formData.content_type !== 'image'} | |
| 225 | + required={formData.content_type !== 'text'} | |
| 226 | 226 | /> |
| 227 | 227 | <p className="text-xs text-gray-500 mt-1"> |
| 228 | 228 | Please be respectful and accurate. All submissions are reviewed before publication. |
@@ -242,7 +242,7 @@ export default function ContributionForm({ personId, personName, onSuccess }: Co | ||
| 242 | 242 | accept="image/jpeg,image/png,image/gif,image/webp" |
| 243 | 243 | onChange={handleImageChange} |
| 244 | 244 | className="w-full px-3 py-2 border border-gray-300 rounded focus:outline-none focus:border-vmi-gold" |
| 245 | - required={formData.content_type !== 'text'} | |
| 245 | + required={formData.content_type !== 'image'} | |
| 246 | 246 | /> |
| 247 | 247 | <p className="text-xs text-gray-500 mt-1"> |
| 248 | 248 | Max 10MB. Accepted formats: JPEG, PNG, GIF, WebP |