Skip to content

Commit

Permalink
Merge pull request #13955 from transcom/B-21077-Align-Button-Add
Browse files Browse the repository at this point in the history
B-21077 Adding back from align PR and mobile home dimensions example
  • Loading branch information
KonstanceH authored Oct 18, 2024
2 parents e5b5570 + 155a430 commit 491fd52
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,8 @@ const MobileHomeShipmentForm = ({ mtoShipment, onBack, onSubmit }) => {
Example
<ul>
<li>
Dimensions of the mobile home on the trailer are significantly different than one would expect
given their individual dimensions
Is there additional information you feel is pertinent to the processing of your mobile home
shipment?(e.g., &lsquo;wrecker service requested&rsquo; and &lsquo;crane service needed&rsquo;).
</li>
</ul>
</Callout>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,22 +113,24 @@ const ApprovedRequestedShipments = ({

return (
<div className={styles.RequestedShipments} data-testid="requested-shipments">
<h2>Approved Shipments</h2>
<div className={styles.dropdownButton}>
{!isMoveLocked && (
<Restricted to={permissionTypes.createTxoShipment}>
<ButtonDropdown
ariaLabel="Add a new shipment"
data-testid="addShipmentButton"
onChange={handleButtonDropdownChange}
>
<option value="" label="Add a new shipment">
Add a new shipment
</option>
{allowedShipmentOptions()}
</ButtonDropdown>
</Restricted>
)}
<div className={styles.sectionHeader}>
<h2>Approved Shipments</h2>
<div className={styles.buttonDropdown}>
{!isMoveLocked && (
<Restricted to={permissionTypes.createTxoShipment}>
<ButtonDropdown
ariaLabel="Add a new shipment"
data-testid="addShipmentButton"
onChange={handleButtonDropdownChange}
>
<option value="" label="Add a new shipment">
Add a new shipment
</option>
{allowedShipmentOptions()}
</ButtonDropdown>
</Restricted>
)}
</div>
</div>

<div className={shipmentCardsStyles.shipmentCards}>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,22 +249,24 @@ const SubmittedRequestedShipments = ({
</div>

<form onSubmit={formik.handleSubmit}>
<h2>Requested shipments</h2>
<div className={styles.dropdownButton}>
{!isMoveLocked && (
<Restricted to={permissionTypes.createTxoShipment}>
<ButtonDropdown
ariaLabel="Add a new shipment"
data-testid="addShipmentButton"
onChange={handleButtonDropdownChange}
>
<option value="" label="Add a new shipment">
Add a new shipment
</option>
{allowedShipmentOptions()}
</ButtonDropdown>
</Restricted>
)}
<div className={styles.sectionHeader}>
<h2>Requested shipments</h2>
<div className={styles.buttonDropdown}>
{!isMoveLocked && (
<Restricted to={permissionTypes.createTxoShipment}>
<ButtonDropdown
ariaLabel="Add a new shipment"
data-testid="addShipmentButton"
onChange={handleButtonDropdownChange}
>
<option value="" label="Add a new shipment">
Add a new shipment
</option>
{allowedShipmentOptions()}
</ButtonDropdown>
</Restricted>
)}
</div>
</div>
<div className={shipmentCardsStyles.shipmentCards}>
{mtoShipments &&
Expand Down

0 comments on commit 491fd52

Please sign in to comment.