vmi-virtual-memorial/vmi-wd-frontend / cbfc38f

Browse files

oops. resolve build errors

Authored by espadonne
SHA
cbfc38f0e1e41f9a2913bfaa04e89366016fc923
Parents
06ebec9
Tree
de2d8c0

1 changed file

StatusFile+-
M components/ContributionForm.tsx 2 2
components/ContributionForm.tsxmodified
@@ -222,7 +222,7 @@ export default function ContributionForm({ personId, personName, onSuccess }: Co
222
                 rows={6}
222
                 rows={6}
223
                 className="w-full px-3 py-2 border border-gray-300 rounded focus:outline-none focus:border-vmi-gold"
223
                 className="w-full px-3 py-2 border border-gray-300 rounded focus:outline-none focus:border-vmi-gold"
224
                 placeholder="Share any additional information about this person's service, life, or sacrifice..."
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
               <p className="text-xs text-gray-500 mt-1">
227
               <p className="text-xs text-gray-500 mt-1">
228
                 Please be respectful and accurate. All submissions are reviewed before publication.
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
                 accept="image/jpeg,image/png,image/gif,image/webp"
242
                 accept="image/jpeg,image/png,image/gif,image/webp"
243
                 onChange={handleImageChange}
243
                 onChange={handleImageChange}
244
                 className="w-full px-3 py-2 border border-gray-300 rounded focus:outline-none focus:border-vmi-gold"
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
               <p className="text-xs text-gray-500 mt-1">
247
               <p className="text-xs text-gray-500 mt-1">
248
                 Max 10MB. Accepted formats: JPEG, PNG, GIF, WebP
248
                 Max 10MB. Accepted formats: JPEG, PNG, GIF, WebP