Skip to content
This repository was archived by the owner on Jul 3, 2023. It is now read-only.

Add button component#237

Merged
JosephusPaye merged 6 commits intomasterfrom
paye/button
Mar 2, 2019
Merged

Add button component#237
JosephusPaye merged 6 commits intomasterfrom
paye/button

Conversation

@JosephusPaye
Copy link
Member

@JosephusPaye JosephusPaye commented Feb 20, 2019

This adds a button component, with two styles: normal and primary.

Extracted from #234, for use in the Script Tuner, also update Select to use it.

Stories:

https://nusight-pr-237.herokuapp.com/storybook/?selectedKind=components.button&selectedStory=renders%20basic&full=0&addons=1&stories=1&panelRight=0&addonPanel=storybook%2Factions%2Factions-panel

@BrendanAnnable BrendanAnnable temporarily deployed to nusight-pr-237 February 20, 2019 08:17 Inactive
@BrendanAnnable BrendanAnnable temporarily deployed to nusight-pr-237 February 20, 2019 08:41 Inactive
@BrendanAnnable BrendanAnnable temporarily deployed to nusight-pr-237 March 2, 2019 03:23 Inactive
Copy link
Member

@BrendanAnnable BrendanAnnable left a comment

Choose a reason for hiding this comment

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

Feedback as a commit:

  • Refactored to be a PureComponent
  • Remove className prop
  • Changed classNames usage to use { [styles.class]: boolean } syntax
  • Removed event from onClick callback
  • Autoformatted select/view.tsx

@BrendanAnnable BrendanAnnable temporarily deployed to nusight-pr-237 March 2, 2019 03:26 Inactive
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants