chore: add missing react prop types (#1651)

This commit is contained in:
Caleb
2018-08-27 10:23:21 -06:00
committed by Shawn Erquhart
parent e215f6889c
commit 922b1846cb
39 changed files with 245 additions and 8 deletions

View File

@ -1,4 +1,5 @@
import React from 'react';
import PropTypes from 'prop-types';
import styled, { css } from 'react-emotion';
import ReactToggled from 'react-toggled';
import { colors, colorsRaw, shadows, transitions } from './styles';
@ -65,6 +66,17 @@ const Toggle = ({
</ReactToggled>
);
Toggle.propTypes = {
active: PropTypes.bool,
onChange: PropTypes.func,
onFocus: PropTypes.func,
onBlur: PropTypes.func,
className: PropTypes.string,
Container: PropTypes.func,
Background: PropTypes.func,
Handle: PropTypes.func,
};
const StyledToggle = styled(Toggle)``;
export { StyledToggle as default, ToggleContainer, ToggleBackground, ToggleHandle };