Skip to content

Commit

Permalink
chore(ui): fixes for accounts view
Browse files Browse the repository at this point in the history
  • Loading branch information
polonel committed Mar 7, 2019
1 parent 1a9cb7b commit 0d512b7
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions src/client/components/Grid/GridItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,17 @@ import PropTypes from 'prop-types'

class GridItem extends React.Component {
render () {
const { width, extraClass } = this.props
const { width, xLargeWidth, extraClass } = this.props
return (
<div className={'uk-width-' + width + (extraClass ? ' ' + extraClass : '')} style={this.props.style}>
<div
className={
'uk-width-' +
width +
(xLargeWidth ? ' uk-width-xLarge-' + xLargeWidth : '') +
(extraClass ? ' ' + extraClass : '')
}
style={this.props.style}
>
{this.props.children}
</div>
)
Expand All @@ -28,6 +36,7 @@ class GridItem extends React.Component {

GridItem.propTypes = {
width: PropTypes.string.isRequired,
xLargeWidth: PropTypes.string,
extraClass: PropTypes.string,
style: PropTypes.object,
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node]).isRequired
Expand Down
2 changes: 1 addition & 1 deletion src/client/containers/Accounts/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ class AccountsContainer extends React.Component {
const isAgent = user.getIn(['role', 'isAgent']) || false
const isDeleted = user.get('deleted') || false
return (
<GridItem key={user.get('_id')} width={'1-5'} extraClass={'mb-25'}>
<GridItem key={user.get('_id')} width={'1-5'} xLargeWidth={'1-6'} extraClass={'mb-25'}>
<TruCard
loaderActive={user.get('loading')}
menu={actionMenu}
Expand Down

0 comments on commit 0d512b7

Please sign in to comment.