Skip to content

Commit

Permalink
chore(autofmt): Automated formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 21, 2024
1 parent 593eaf4 commit cae9919
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions frontend/src/features/verbs/VerbRequestForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,16 +102,16 @@ export const VerbRequestForm = ({ module, verb }: { module?: Module; verb?: Verb

const bottomText = response ?? error ?? ''

const bodyEditor =
<CodeEditor
initialState={initialEditorState}
onTextChanged={handleEditorTextChanged}
/>
const bodyPanels = bottomText === '' ? bodyEditor :
<ResizableVerticalPanels
topPanelContent={bodyEditor}
bottomPanelContent={<CodeEditor initialState={{ initialText: bottomText, readonly: true }} onTextChanged={setHeadersText} />}
/>
const bodyEditor = <CodeEditor initialState={initialEditorState} onTextChanged={handleEditorTextChanged} />
const bodyPanels =
bottomText === '' ? (
bodyEditor
) : (
<ResizableVerticalPanels
topPanelContent={bodyEditor}
bottomPanelContent={<CodeEditor initialState={{ initialText: bottomText, readonly: true }} onTextChanged={setHeadersText} />}
/>
)

return (
<div className='flex flex-col h-full overflow-hidden pt-4'>
Expand Down

0 comments on commit cae9919

Please sign in to comment.