Declare types on settings

This commit is contained in:
Shin'ya Ueoka 2019-04-29 15:47:42 +09:00
parent be900aa25c
commit ee078c677b
5 changed files with 36 additions and 0 deletions
src/settings/components/form

View file

@ -1,5 +1,6 @@
import './KeymapsForm.scss';
import React from 'react';
import PropTypes from 'prop-types';
import Input from '../ui/Input';
import keymaps from '../../keymaps';
@ -44,4 +45,9 @@ class KeymapsForm extends React.Component {
}
}
KeymapsForm.propTypes = {
value: PropTypes.objectOf(PropTypes.string),
onChange: PropTypes.func,
};
export default KeymapsForm;