diff --git a/src/app/pages/tabs-container/collection-types/grpc/request/request.tsx b/src/app/pages/tabs-container/collection-types/grpc/request/request.tsx index 1f6da8a..c23871f 100644 --- a/src/app/pages/tabs-container/collection-types/grpc/request/request.tsx +++ b/src/app/pages/tabs-container/collection-types/grpc/request/request.tsx @@ -1,4 +1,4 @@ -import { styled } from '@nextui-org/react'; +import { Container, styled, Text } from '@nextui-org/react'; import React from 'react'; import { CodeEditor, Tab, Tabs } from '@components'; @@ -56,18 +56,23 @@ export const Request: React.FC = ({ tab }) => { }); }; - return ( - - - + const toolBar = ( + + + JSON + + + ); + + const requestTab = ( + + + = ({ tab }) => { value={tab.data.requestTabs.request.value} onChange={handleRequestChange} /> - - + + {toolBar} + + + ); + + const metadataTab = ( + + + = ({ tab }) => { value={tab.data.requestTabs.metadata.value} onChange={handleMetadataChange} /> - + + {toolBar} + + + ); + + return ( + + + {requestTab} + {metadataTab} );