Skip to content

Implement Choice Tile#91

Merged
100stacks merged 8 commits intomasterfrom
choiceTile
May 22, 2020
Merged

Implement Choice Tile#91
100stacks merged 8 commits intomasterfrom
choiceTile

Conversation

@michaelmang
Copy link
Contributor

@netlify
Copy link

netlify bot commented May 18, 2020

Deploy preview for helix-react ready!

Built with commit 2c5553d

https://deploy-preview-91--helix-react.netlify.app

...rest
}) => {
return (
<label className={classNames({ hxChoice: true, className })}>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

non blocking: a potential shorter way to say the same thing:

Suggested change
<label className={classNames({ hxChoice: true, className })}>
<label className={classNames( 'hxChoice', className)}>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this alternative would add a class name of undefined when there is no className, right?

Copy link
Contributor

@nicko-winner nicko-winner May 19, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only if it was written like this: classNames={`hxChoice ${className}`} but className() does not include undefined values.

from the docs: https://github.com/JedWatson/classnames#readme

// other falsy values are just ignored
classNames(null, false, 'bar', undefined, 0, 1, { baz: null }, ''); // => 'bar 1'

Mike Mangialardi added 2 commits May 18, 2020 18:38
Copy link
Member

@100stacks 100stacks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work!

Dev LGTM

@100stacks 100stacks merged commit 3f6295b into master May 22, 2020
@100stacks 100stacks deleted the choiceTile branch May 22, 2020 01:08
@100stacks 100stacks added this to the v1.0.0-rc.0 milestone Jul 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants