Skip to content

Commit

Permalink
Little optimization for docs page (#915)
Browse files Browse the repository at this point in the history
* For HuePicker component used onChange handler instead of onChangeComplete

* For webpack.config-docs removed extra mode=development
  • Loading branch information
gnvcor authored Jul 15, 2024
1 parent bfdf667 commit 153714e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion packages/icons/scripts/webpack.config-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ module.exports = {
'window.ICONS': iconsMap,
}),
],
mode: 'development',
cache: {
type: 'filesystem',
},
Expand Down
2 changes: 1 addition & 1 deletion packages/icons/src/docs/docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ class Docs extends React.PureComponent {
<div className="color-picker">
<Hue
color={this.state.currentColor}
onChangeComplete={this.onCurrentColorChange}
onChange={this.onCurrentColorChange}
width="100%"
/>
</div>
Expand Down

0 comments on commit 153714e

Please sign in to comment.