2021-12-04 12:30:03 +01:00
|
|
|
import React from 'react';
|
|
|
|
import { Tab, TabList, TabPanel, Tabs } from 'react-tabs';
|
|
|
|
import StyledWrapper from './StyledWrapper';
|
2022-01-20 17:04:44 +01:00
|
|
|
import QueryParams from '../QueryParams';
|
2021-12-31 17:22:22 +01:00
|
|
|
import RequestHeaders from '../RequestHeaders';
|
2021-12-04 12:30:03 +01:00
|
|
|
|
2022-01-20 17:04:44 +01:00
|
|
|
const HttpRequestPane = ({leftPaneWidth}) => {
|
2021-12-04 12:30:03 +01:00
|
|
|
return (
|
2022-01-07 20:26:10 +01:00
|
|
|
<StyledWrapper className="h-full">
|
|
|
|
<Tabs className='react-tabs mt-1 flex flex-grow flex-col h-full' forceRenderTabPanel>
|
2021-12-04 12:30:03 +01:00
|
|
|
<TabList>
|
2022-01-20 17:04:44 +01:00
|
|
|
<Tab tabIndex="-1">Params</Tab>
|
2022-01-21 08:55:39 +01:00
|
|
|
<Tab tabIndex="-1">Body</Tab>
|
2021-12-04 12:30:03 +01:00
|
|
|
<Tab tabIndex="-1">Headers</Tab>
|
2022-01-21 08:55:39 +01:00
|
|
|
<Tab tabIndex="-1">Authorization</Tab>
|
2021-12-04 12:30:03 +01:00
|
|
|
</TabList>
|
|
|
|
<TabPanel>
|
2022-01-20 17:04:44 +01:00
|
|
|
<QueryParams />
|
2021-12-04 12:30:03 +01:00
|
|
|
</TabPanel>
|
|
|
|
<TabPanel>
|
2021-12-31 17:22:22 +01:00
|
|
|
<RequestHeaders />
|
2021-12-04 12:30:03 +01:00
|
|
|
</TabPanel>
|
|
|
|
</Tabs>
|
|
|
|
</StyledWrapper>
|
|
|
|
)
|
|
|
|
};
|
|
|
|
|
2022-01-20 17:04:44 +01:00
|
|
|
export default HttpRequestPane;
|