Skip to content

Commit

Permalink
Merge pull request #401 from appfolio/fixAddressInputMargin
Browse files Browse the repository at this point in the history
mj/st - remove bottom margin of last row if there is no country
  • Loading branch information
gthomas-appfolio authored May 3, 2018
2 parents cf99730 + 9d6ead0 commit 7046873
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/components/AddressInput.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import PropTypes from 'prop-types';
import React from 'react';
import flow from 'lodash.flow';
import classnames from 'classnames';

import CountryInput from './CountryInput';
import StateInput from './StateInput';
Expand Down Expand Up @@ -102,7 +103,7 @@ class AddressInput extends React.Component {
<Row className="no-gutters">
<Col sm={6} xs={5}>
<ValidatedFormGroup
className="pr-3"
className={classnames('pr-3', { 'mb-0': !showCountry })}
error={error.city}
label={showLabels ? labels.city : null}
>
Expand All @@ -121,7 +122,7 @@ class AddressInput extends React.Component {
</Col>
<Col sm={2} xs={3}>
<ValidatedFormGroup
className="pr-3"
className={classnames('pr-3', { 'mb-0': !showCountry })}
error={error.state}
label={showLabels ? labels.state : null}
>
Expand All @@ -139,6 +140,7 @@ class AddressInput extends React.Component {
</Col>
<Col sm={4} xs={4}>
<ValidatedFormGroup
className={classnames({ 'mb-0': !showCountry })}
label={showLabels ? labels.postal : null}
error={error.postal}
>
Expand Down

0 comments on commit 7046873

Please sign in to comment.