Skip to content

Conversation

NaumanMoazzam
Copy link

Description

Launcher color can be changed by the user

Checklist

  • [x ] Additions/changes follow the current code structure
  • [ x] All changes are related to a single topic
  • [ x] Demo tested (npm start) to ensure it still functions as expected, and/or
  • [ x] New features are demonstrated to the demo (leave checkbox blank if not applicable)
  • Readme/docs are updated
  • [ x] npm run lint passes (npm run lint -- --fix will autofix where possible)

@NaumanMoazzam NaumanMoazzam requested review from heatherbooker, nnur and dharness and removed request for heatherbooker June 22, 2020 10:00
@NaumanMoazzam NaumanMoazzam self-assigned this Jun 22, 2020
return (
<div id="sc-launcher">
<div className={classList.join(' ')} onClick={this.handleClick.bind(this)}>
<div className={classList.join(' ')} onClick={this.handleClick.bind(this)} style={{background: `${this.props.launcherColor}`}}>
Copy link
Owner

Choose a reason for hiding this comment

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

It would be preferable to do this via the classList - inline styles can create confusion down the line.

this.state = {
launcherIcon,
isOpen: false
isOpen: false,
Copy link
Owner

Choose a reason for hiding this comment

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

Let's be consistent with our commas across the repo. If there is not consistency already, this change is unwarranted

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants