From 7587234e0c218bfc7ce1aa0b5273ef8f2c5caf8c Mon Sep 17 00:00:00 2001 From: konfig-bot Date: Wed, 25 Oct 2023 13:22:43 -0700 Subject: [PATCH] save --- .../components/OperationFormGeneratedCode.tsx | 8 -------- .../src/components/OperationReferenceMain.tsx | 17 +++++++++++++---- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/generator/konfig-next-app/src/components/OperationFormGeneratedCode.tsx b/generator/konfig-next-app/src/components/OperationFormGeneratedCode.tsx index f98dbf95dd..680e92f535 100644 --- a/generator/konfig-next-app/src/components/OperationFormGeneratedCode.tsx +++ b/generator/konfig-next-app/src/components/OperationFormGeneratedCode.tsx @@ -69,14 +69,6 @@ export function OperationFormGeneratedCode(args: CodeGeneratorConstructorArgs) { } return ( - - }> - TypeScript - - }> - Python - - {data} diff --git a/generator/konfig-next-app/src/components/OperationReferenceMain.tsx b/generator/konfig-next-app/src/components/OperationReferenceMain.tsx index 7278359924..f7998163ff 100644 --- a/generator/konfig-next-app/src/components/OperationReferenceMain.tsx +++ b/generator/konfig-next-app/src/components/OperationReferenceMain.tsx @@ -38,7 +38,15 @@ import { CodeGeneratorTypeScript } from '../utils/code-generator-typescript' import { ExecuteOutput } from './ExecuteOutput' import { tryJsonOutput } from '../utils/try-json-output' import { tryTableOutput } from '../utils/try-table-output' -import { IconAlertCircle, IconTerminal } from '@tabler/icons-react' +import { + IconAlertCircle, + IconPlayerPlay, + IconPlayerPlayFilled, + IconPlayerRecord, + IconRepeat, + IconTerminal, + IconUpload, +} from '@tabler/icons-react' import { deepmerge } from '../utils/deepmerge' import { notifications } from '@mantine/notifications' import localforage from 'localforage' @@ -213,7 +221,8 @@ export function OperationReferenceMain({ } const header = operation.operation.summary ?? operation.path - + const RequestIcon = + result?.data !== undefined ? IconRepeat : IconPlayerPlayFilled return (
} + rightIcon={} > - Request API + Send request {result?.data != null && (