Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

INT-B-19226 onboarding required fields fix for boat shipments #13567

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ import MaskedTextField from 'components/form/fields/MaskedTextField/MaskedTextFi
import Callout from 'components/Callout';
import { ErrorMessage } from 'components/form/index';
import { convertInchesToFeetAndInches } from 'utils/formatMtoShipment';
import RequiredTag from 'components/form/RequiredTag';

const currentYear = new Date().getFullYear();
const maxYear = currentYear + 2;
Expand Down Expand Up @@ -158,6 +159,7 @@ const BoatShipmentForm = ({ mtoShipment, onBack, onSubmit }) => {
<Fieldset className={styles.formFieldContainer}>
<div className="labelWrapper">
<legend className="usa-label">Length</legend>
<RequiredTag />
<ErrorMessage display={lengthHasError}>Required</ErrorMessage>
</div>
<div className={classnames(styles.formTextFieldWrapper, 'grid-row grid-gap')}>
Expand All @@ -173,6 +175,7 @@ const BoatShipmentForm = ({ mtoShipment, onBack, onSubmit }) => {
suffix="Feet"
errorClassName={styles.hide}
title="Length in feet"
optional
/>
</div>
<div className="mobile-lg:grid-col-3">
Expand All @@ -188,13 +191,15 @@ const BoatShipmentForm = ({ mtoShipment, onBack, onSubmit }) => {
max={11}
errorClassName={styles.hide}
title="Length in inches"
optional
/>
</div>
</div>
</Fieldset>
<Fieldset className={styles.formFieldContainer}>
<div className="labelWrapper">
<legend className="usa-label">Width</legend>
<RequiredTag />
<ErrorMessage display={widthHasError}>Required</ErrorMessage>
</div>
<div className={classnames(styles.formTextFieldWrapper, 'grid-row grid-gap')}>
Expand All @@ -210,6 +215,7 @@ const BoatShipmentForm = ({ mtoShipment, onBack, onSubmit }) => {
suffix="Feet"
errorClassName={styles.hide}
title="Width in feet"
optional
/>
</div>
<div className="mobile-lg:grid-col-3">
Expand All @@ -225,13 +231,15 @@ const BoatShipmentForm = ({ mtoShipment, onBack, onSubmit }) => {
max={11}
errorClassName={styles.hide}
title="Width in inches"
optional
/>
</div>
</div>
</Fieldset>
<Fieldset className={styles.formFieldContainer}>
<div className="labelWrapper">
<legend className="usa-label">Height</legend>
<RequiredTag />
<ErrorMessage display={heightHasError}>Required</ErrorMessage>
</div>
<div className={classnames(styles.formTextFieldWrapper, 'grid-row grid-gap')}>
Expand All @@ -247,6 +255,7 @@ const BoatShipmentForm = ({ mtoShipment, onBack, onSubmit }) => {
suffix="Feet"
errorClassName={styles.hide}
title="Height in feet"
optional
/>
</div>
<div className="mobile-lg:grid-col-3">
Expand All @@ -262,6 +271,7 @@ const BoatShipmentForm = ({ mtoShipment, onBack, onSubmit }) => {
max={11}
errorClassName={styles.hide}
title="Height in inches"
optional
/>
</div>
</div>
Expand Down