2017-02-28 21:32:23 +00:00
|
|
|
import React, {PropTypes, PureComponent} from 'react';
|
2017-03-28 22:45:23 +00:00
|
|
|
import Hotkey from '../../hotkey';
|
2016-07-21 21:55:03 +00:00
|
|
|
|
2017-02-28 21:32:23 +00:00
|
|
|
class DropdownHint extends PureComponent {
|
|
|
|
render () {
|
2017-03-28 22:45:23 +00:00
|
|
|
const {char, shift, alt} = this.props;
|
2017-02-28 21:32:23 +00:00
|
|
|
return (
|
2017-03-28 22:45:23 +00:00
|
|
|
<Hotkey
|
|
|
|
className="dropdown__hint"
|
|
|
|
char={char}
|
|
|
|
alt={alt}
|
|
|
|
shift={shift}
|
|
|
|
/>
|
2017-03-03 20:09:08 +00:00
|
|
|
);
|
2017-02-28 21:32:23 +00:00
|
|
|
}
|
|
|
|
}
|
2016-07-21 21:55:03 +00:00
|
|
|
|
|
|
|
DropdownHint.propTypes = {
|
2017-03-28 22:45:23 +00:00
|
|
|
char: PropTypes.string.isRequired,
|
|
|
|
|
|
|
|
// Optional
|
|
|
|
alt: PropTypes.bool,
|
|
|
|
shift: PropTypes.bool
|
2016-07-21 21:55:03 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default DropdownHint;
|