File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 "version" : " 0.1.0" ,
44 "private" : true ,
55 "dependencies" : {
6- "classnames" : " ^2.2.6" ,
76 "prop-types" : " ^15.6.2" ,
87 "react" : " ^16.7.0" ,
98 "react-dom" : " ^16.7.0" ,
Original file line number Diff line number Diff line change 11import React from 'react' ;
22import PropTypes from 'prop-types' ;
3- import classnames from 'classnames' ;
43import styled from 'styled-components' ;
54import { connect } from 'react-redux' ;
65import { toggle } from '../actions/toggle' ;
@@ -50,7 +49,7 @@ export const Toggle = props => {
5049 if ( control === 'mode' && mode === 'light' ) isActive = 'active' ;
5150
5251 return (
53- < StyledToggle onClick = { ( ) => onToggle ( control ) } className = { classnames ( isActive ) } >
52+ < StyledToggle onClick = { ( ) => onToggle ( control ) } className = { isActive } >
5453 < SVG control = { control } />
5554 </ StyledToggle >
5655 ) ;
Original file line number Diff line number Diff line change @@ -3463,7 +3463,7 @@ class-utils@^0.3.5:
34633463 isobject "^3.0.0"
34643464 static-extend "^0.1.1"
34653465
3466- classnames@^2.2.5, classnames@^2.2.6 :
3466+ classnames@^2.2.5 :
34673467 version "2.2.6"
34683468 resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce"
34693469 integrity sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==
You can’t perform that action at this time.
0 commit comments