mirror of
https://github.com/Kong/insomnia
synced 2024-11-12 17:26:32 +00:00
177d6adf38
Co-authored-by: Opender Singh <opender94@gmail.com> Co-authored-by: Opender Singh <opender.singh@konghq.com>
17 lines
516 B
TypeScript
17 lines
516 B
TypeScript
import { KeyBindings } from 'insomnia-common';
|
|
import React, { PureComponent } from 'react';
|
|
|
|
import { Hotkey } from '../../hotkey';
|
|
|
|
interface Props {
|
|
keyBindings: KeyBindings;
|
|
}
|
|
|
|
// eslint-disable-next-line react/prefer-stateless-function -- Dropdown's implementation makes changing this to a function component tricky.
|
|
export class DropdownHint extends PureComponent<Props> {
|
|
render() {
|
|
const { keyBindings } = this.props;
|
|
return <Hotkey className="dropdown__hint" keyBindings={keyBindings} />;
|
|
}
|
|
}
|