Skip to content

Commit

Permalink
Merge pull request #595 from City-of-Helsinki/hotfix/label-spacing
Browse files Browse the repository at this point in the history
Fix label list spacing
  • Loading branch information
Rikuoja authored Feb 26, 2018
2 parents 03adba3 + 28cb062 commit 2d30df5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions __tests__/__snapshots__/LabelList.react-test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ exports[`LabelList can handle list of label objects 1`] = `
>
such
</Label>
</withRouter(Connect(LinkWithLangComponent))>
<withRouter(Connect(LinkWithLangComponent))
key="2"
Expand All @@ -41,6 +42,7 @@ exports[`LabelList can handle list of label objects 1`] = `
>
label
</Label>
</withRouter(Connect(LinkWithLangComponent))>
</div>
`;
2 changes: 1 addition & 1 deletion src/components/LabelList.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ class LabelList extends React.Component {
*/
const labelToHTML = (label) => (
<Link to={{path: '/hearings/list', search: `?label=${label.id}`}} key={label.id || label}>
<Label bsStyle="info">{getAttr(label.label, language)}</Label>
<Label bsStyle="info">{getAttr(label.label, language)}</Label>{' '}
</Link>
);

Expand Down

0 comments on commit 2d30df5

Please sign in to comment.