Skip to content

Commit

Permalink
Merge pull request #406 from dhis2/fix/orglist-onclick
Browse files Browse the repository at this point in the history
fix(organisationlist): replace onTouchTap with onClick
  • Loading branch information
Birkbjo authored Nov 8, 2020
2 parents 5d3a92b + d45afa7 commit 377ac0b
Showing 1 changed file with 3 additions and 18 deletions.
21 changes: 3 additions & 18 deletions client/src/components/user/organisation/OrganisationListItem.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,33 +4,18 @@ import { ListItem } from 'material-ui/List'
import { withRouter } from 'react-router'

const OrganisationListItem = props => {
const { id, slug, name } = props.organisation
const { slug, name } = props.organisation

const listItemProps = {
primaryText: name,
// primaryText: (
// <div
// style={{
// display: 'flex',
// alignItems: 'center',
// fontWeight: '400',
// }}
// >
// {name}
// </div>
// ),
//leftAvatar: <AppLogo logo={logo} inList />,
// secondaryText: secondaryText,
// secondaryTextLines: 2,
//rightIconButton: props.isManager ? menu : null,
onTouchTap: () => props.history.push(`${props.match.url}/${slug}`),
onClick: () => props.history.push(`${props.match.url}/${slug}`),
}

return <ListItem {...listItemProps} />
}

OrganisationListItem.propTypes = {
organisation: PropTypes.object,
isManager: PropTypes.bool,
organisation: PropTypes.object,
}
export default withRouter(OrganisationListItem)

0 comments on commit 377ac0b

Please sign in to comment.