diff options
author | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-04-29 15:47:42 +0900 |
---|---|---|
committer | Shin'ya Ueoka <ueokande@i-beam.org> | 2019-04-29 16:06:51 +0900 |
commit | ee078c677bbb7756636898830f766465d426f68b (patch) | |
tree | 5087193dab11ad05950f6015d82b6e1749f58c0b /src/settings/components/form/KeymapsForm.jsx | |
parent | be900aa25ca205c467dcbbab9c284ef680441996 (diff) |
Declare types on settings
Diffstat (limited to 'src/settings/components/form/KeymapsForm.jsx')
-rw-r--r-- | src/settings/components/form/KeymapsForm.jsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/settings/components/form/KeymapsForm.jsx b/src/settings/components/form/KeymapsForm.jsx index 25a3710..f5444fc 100644 --- a/src/settings/components/form/KeymapsForm.jsx +++ b/src/settings/components/form/KeymapsForm.jsx @@ -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; |