insomnia/packages/insomnia-app/app/ui/components/base/dropdown/dropdown-hint.tsx
Dimitri Mitropoulos 177d6adf38
Insomnia Config, controlled settings (#4031)
Co-authored-by: Opender Singh <opender94@gmail.com>
Co-authored-by: Opender Singh <opender.singh@konghq.com>
2021-10-14 10:59:45 -04:00

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} />;
}
}