Use purecomponent
Co-Authored-By: Travis Ralston <travpc@gmail.com>
This commit is contained in:
parent
bfba5e6cfe
commit
a8407c9508
1 changed files with 1 additions and 1 deletions
|
@ -116,7 +116,7 @@ type DotIProps = {
|
||||||
disabled: boolean;
|
disabled: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
class Dot extends React.Component<DotIProps> {
|
class Dot extends React.PureComponent<DotIProps> {
|
||||||
render(): React.ReactNode {
|
render(): React.ReactNode {
|
||||||
let className = "mx_Slider_dot"
|
let className = "mx_Slider_dot"
|
||||||
if (!this.props.disabled && this.props.active) {
|
if (!this.props.disabled && this.props.active) {
|
||||||
|
|
Loading…
Reference in a new issue