flattens dist folder

This commit is contained in:
James
2020-12-24 10:28:41 -05:00
parent d510961f6c
commit be04310810
12 changed files with 24 additions and 33 deletions

View File

@@ -1,11 +1,11 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Props } from './types';
import './index.scss';
const baseClass = 'radio-input';
const RadioInput = (props) => {
const RadioInput: React.FC<Props> = (props) => {
const { isSelected, option, onChange, path } = props;
const classes = [
@@ -33,22 +33,4 @@ const RadioInput = (props) => {
);
};
RadioInput.defaultProps = {
isSelected: false,
onChange: undefined,
};
RadioInput.propTypes = {
isSelected: PropTypes.bool,
option: PropTypes.shape({
label: PropTypes.string,
value: PropTypes.oneOfType([
PropTypes.string,
PropTypes.number,
]),
}).isRequired,
onChange: PropTypes.func,
path: PropTypes.string.isRequired,
};
export default RadioInput;

View File

@@ -0,0 +1,9 @@
export type Props = {
isSelected: boolean
option: {
label: string
value: string
}
onChange: (val: string) => void
path: string
}