insomnia/app/ui/components/base/dropdown/dropdown-hint.js
Gregory Schier 2cdd4761c8 Remaining V5 Features (#122)
* Add digest auth and response timeline

* Some css fixes

* Fixed Button

* More auth methods, fixed URL regex, and fix gzip

* Get rid of negotiate auth

* Fix proxy

* Fixed GA tracking

* Some very small changes and fixes

* Fix content type names

* Even better auth switching and timeline syntax

* Some auth tweaks

* CSS tweaks

* Reworked toasts

* Fixed timer rounding quirk

* Request settings and render errors

* Fixed tests

* Vertical dragging and stuff

* Remove beta
2017-03-28 15:45:23 -07:00

27 lines
495 B
JavaScript

import React, {PropTypes, PureComponent} from 'react';
import Hotkey from '../../hotkey';
class DropdownHint extends PureComponent {
render () {
const {char, shift, alt} = this.props;
return (
<Hotkey
className="dropdown__hint"
char={char}
alt={alt}
shift={shift}
/>
);
}
}
DropdownHint.propTypes = {
char: PropTypes.string.isRequired,
// Optional
alt: PropTypes.bool,
shift: PropTypes.bool
};
export default DropdownHint;