From 3037c3564e265eaf8366bd584142920c1e761b60 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Sun, 9 Jan 2022 22:21:03 +0530 Subject: [PATCH] feat: click on new tab icon creates a new tab --- .../src/components/RequestTabs/index.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/grafnode-components/src/components/RequestTabs/index.js b/packages/grafnode-components/src/components/RequestTabs/index.js index 3fdfeea53..1b822bdaa 100644 --- a/packages/grafnode-components/src/components/RequestTabs/index.js +++ b/packages/grafnode-components/src/components/RequestTabs/index.js @@ -42,6 +42,12 @@ const RequestTabs = ({actions, dispatch, activeRequestTabId, requestTabs}) => { }); }; + const createNewTab = () => { + dispatch({ + type: actions.ADD_NEW_HTTP_REQUEST + }); + }; + return ( {requestTabs && requestTabs.length ? ( @@ -63,7 +69,7 @@ const RequestTabs = ({actions, dispatch, activeRequestTabId, requestTabs}) => { }) : null} -
  • +