mirror of
https://github.com/Kong/insomnia
synced 2024-11-08 23:00:30 +00:00
5f4c19da35
Co-authored-by: Opender Singh <opender.singh@konghq.com>
71 lines
2.0 KiB
TypeScript
71 lines
2.0 KiB
TypeScript
import React, { FunctionComponent } from 'react';
|
|
import Hotkey from '../hotkey';
|
|
import { hotKeyRefs } from '../../../common/hotkeys';
|
|
import * as hotkeys from '../../../common/hotkeys';
|
|
import { Pane, PaneBody, PaneHeader } from './pane';
|
|
|
|
interface Props {
|
|
hotKeyRegistry: hotkeys.HotKeyRegistry;
|
|
}
|
|
|
|
const PlaceholderResponsePane: FunctionComponent<Props> = ({ hotKeyRegistry, children }) => (
|
|
<Pane type="response">
|
|
<PaneHeader />
|
|
<PaneBody placeholder>
|
|
<div>
|
|
<table className="table--fancy">
|
|
<tbody>
|
|
<tr>
|
|
<td>Send Request</td>
|
|
<td className="text-right">
|
|
<code>
|
|
<Hotkey
|
|
keyBindings={hotKeyRegistry[hotKeyRefs.REQUEST_SEND.id]}
|
|
useFallbackMessage
|
|
/>
|
|
</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Focus Url Bar</td>
|
|
<td className="text-right">
|
|
<code>
|
|
<Hotkey
|
|
keyBindings={hotKeyRegistry[hotKeyRefs.REQUEST_FOCUS_URL.id]}
|
|
useFallbackMessage
|
|
/>
|
|
</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Manage Cookies</td>
|
|
<td className="text-right">
|
|
<code>
|
|
<Hotkey
|
|
keyBindings={hotKeyRegistry[hotKeyRefs.SHOW_COOKIES_EDITOR.id]}
|
|
useFallbackMessage
|
|
/>
|
|
</code>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Edit Environments</td>
|
|
<td className="text-right">
|
|
<code>
|
|
<Hotkey
|
|
keyBindings={hotKeyRegistry[hotKeyRefs.ENVIRONMENT_SHOW_EDITOR.id]}
|
|
useFallbackMessage
|
|
/>
|
|
</code>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</PaneBody>
|
|
{children}
|
|
</Pane>
|
|
);
|
|
|
|
export default PlaceholderResponsePane;
|