diff --git a/package.json b/package.json index f533496..34539bf 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,6 @@ "version": "0.1.0", "private": true, "dependencies": { - "classnames": "^2.2.6", "prop-types": "^15.6.2", "react": "^16.7.0", "react-dom": "^16.7.0", diff --git a/src/components/Toggle.jsx b/src/components/Toggle.jsx index 4dc0ca7..82e5600 100644 --- a/src/components/Toggle.jsx +++ b/src/components/Toggle.jsx @@ -1,6 +1,5 @@ import React from 'react'; import PropTypes from 'prop-types'; -import classnames from 'classnames'; import styled from 'styled-components'; import { connect } from 'react-redux'; import { toggle } from '../actions/toggle'; @@ -50,7 +49,7 @@ export const Toggle = props => { if (control === 'mode' && mode === 'light') isActive = 'active'; return ( - onToggle(control)} className={classnames(isActive)}> + onToggle(control)} className={isActive}> ); diff --git a/yarn.lock b/yarn.lock index 25853a6..c777e0c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3463,7 +3463,7 @@ class-utils@^0.3.5: isobject "^3.0.0" static-extend "^0.1.1" -classnames@^2.2.5, classnames@^2.2.6: +classnames@^2.2.5: version "2.2.6" resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce" integrity sha512-JR/iSQOSt+LQIWwrwEzJ9uk0xfN3mTVYMwt1Ir5mUcSN6pU+V4zQFFaJsclJbPuAUQH+yfWef6tm7l1quW3C8Q==