-
Notifications
You must be signed in to change notification settings - Fork 85
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* resize to complete shrinkage * adjust response-headers height * remove unnecessary code * add container style to auth import
- Loading branch information
Showing
8 changed files
with
85 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
import React from 'react'; | ||
import { useSelector } from 'react-redux'; | ||
|
||
import { Monaco } from '../../../common'; | ||
import { convertVhToPx } from '../../../common/dimensions-adjustment'; | ||
|
||
const RequestBody = ({ handleOnEditorChange }: any) => { | ||
const { dimensions: { request: { height } }, sampleQuery } = useSelector((state: any) => state); | ||
|
||
export const RequestBodyControl = () => { | ||
return ( | ||
<div className='request-editor-control'> | ||
<Monaco | ||
body={undefined} | ||
/> | ||
</div> | ||
<Monaco | ||
body={sampleQuery.sampleBody} | ||
height={convertVhToPx(height, 60)} | ||
onChange={(value) => handleOnEditorChange(value)} /> | ||
); | ||
}; | ||
|
||
export default RequestBody; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import RequestBody from './RequestBody'; | ||
export { | ||
RequestBody | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters