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>
70 lines
2.0 KiB
TypeScript
70 lines
2.0 KiB
TypeScript
import { HotKeyRegistry } from 'insomnia-common';
|
|
import React, { FunctionComponent } from 'react';
|
|
|
|
import { hotKeyRefs } from '../../../common/hotkeys';
|
|
import { Hotkey } from '../hotkey';
|
|
import { Pane, PaneBody, PaneHeader } from './pane';
|
|
|
|
interface Props {
|
|
hotKeyRegistry: HotKeyRegistry;
|
|
}
|
|
|
|
export 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>
|
|
);
|