mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
b198e6170b
* Removed some unnecessary rendering * Only PureComponents and some other stuff * Removed all functional components * Only deal with nunjucks marks * Remove ref assign functions in modals * Lots of tweaks * A bit snappier * A bit snappier
18 lines
382 B
JavaScript
18 lines
382 B
JavaScript
import React, {PropTypes, PureComponent} from 'react';
|
|
import {MOD_SYM} from '../../../../common/constants';
|
|
|
|
class DropdownHint extends PureComponent {
|
|
render () {
|
|
const {char} = this.props;
|
|
return (
|
|
<span className="dropdown__hint">{MOD_SYM}{char}</span>
|
|
)
|
|
}
|
|
}
|
|
|
|
DropdownHint.propTypes = {
|
|
char: PropTypes.string.isRequired
|
|
};
|
|
|
|
export default DropdownHint;
|