Skip to content

Commit

Permalink
Change styling var to a boolean
Browse files Browse the repository at this point in the history
  • Loading branch information
paulmelnikow committed Jan 10, 2019
1 parent 4617564 commit 9cc1d9c
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions frontend/components/markup-modal/path-builder.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ const PathBuilderColumn = styled.span`
margin: 5px 0;
${({ horizPadding }) =>
horizPadding &&
${({ withHorizPadding }) =>
withHorizPadding &&
css`
padding-left: ${horizPadding};
padding-right: ${horizPadding};
padding: 0 8px;
`};
`

Expand Down Expand Up @@ -148,7 +147,7 @@ export default class PathBuilder extends React.Component {
return (
<React.Fragment key={token.name}>
{this.renderLiteral(delimiter, tokenIndex)}
<PathBuilderColumn horizPadding="8px">
<PathBuilderColumn withHorizPadding>
<NamedParamLabel htmlFor={name}>
{humanizeString(name)}
</NamedParamLabel>
Expand Down

0 comments on commit 9cc1d9c

Please sign in to comment.