[INS-1976] Adding Placeholder Pane (#5189)

* adding Placeholder Pane

* Update packages/insomnia/src/ui/components/wrapper-debug.tsx

Co-authored-by: Filipe Freire <livrofubia@gmail.com>
Co-authored-by: Jack Kavanagh <jackkav@gmail.com>
This commit is contained in:
Mark Kim 2022-09-16 10:30:43 -04:00 committed by GitHub
parent bd58dc9241
commit d28d8cafb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -22,6 +22,7 @@ import { showCookiesModal } from './modals/cookies-modal';
import { PageLayout } from './page-layout'; import { PageLayout } from './page-layout';
import { GrpcRequestPane } from './panes/grpc-request-pane'; import { GrpcRequestPane } from './panes/grpc-request-pane';
import { GrpcResponsePane } from './panes/grpc-response-pane'; import { GrpcResponsePane } from './panes/grpc-response-pane';
import { PlaceholderRequestPane } from './panes/placeholder-request-pane';
import { RequestPane } from './panes/request-pane'; import { RequestPane } from './panes/request-pane';
import { ResponsePane } from './panes/response-pane'; import { ResponsePane } from './panes/response-pane';
import { SidebarChildren } from './sidebar/sidebar-children'; import { SidebarChildren } from './sidebar/sidebar-children';
@ -64,7 +65,6 @@ export const WrapperDebug: FC<Props> = ({
window.main.webSocket.closeAll(); window.main.webSocket.closeAll();
}; };
}, [activeEnvironment?._id]); }, [activeEnvironment?._id]);
return ( return (
<PageLayout <PageLayout
renderPageHeader={activeWorkspace ? renderPageHeader={activeWorkspace ?
@ -130,6 +130,7 @@ export const WrapperDebug: FC<Props> = ({
) )
) )
)} )}
{!activeRequest && <PlaceholderRequestPane />}
</ErrorBoundary> </ErrorBoundary>
: null} : null}
renderPaneTwo={ renderPaneTwo={