diff --git a/packages/docusaurus-theme-openapi-docs/src/theme/ResponseExamples/index.tsx b/packages/docusaurus-theme-openapi-docs/src/theme/ResponseExamples/index.tsx index c906d1de0..52287b703 100644 --- a/packages/docusaurus-theme-openapi-docs/src/theme/ResponseExamples/index.tsx +++ b/packages/docusaurus-theme-openapi-docs/src/theme/ResponseExamples/index.tsx @@ -7,7 +7,6 @@ import React from "react"; -import ParamsItem from "@theme/ParamsItem"; import ResponseSamples from "@theme/ResponseSamples"; import TabItem from "@theme/TabItem"; import { createDescription } from "docusaurus-plugin-openapi-docs/lib/markdown/createDescription"; @@ -85,47 +84,6 @@ interface Props { mimeType: string; } -// React components -export const ParamsDetails: React.FC = ({ parameters, type }) => { - const params = parameters?.filter((param) => param?.in === type); - - if (!params || params.length === 0) { - return null; - } - - return ( -
- -

- {`${type.charAt(0).toUpperCase() + type.slice(1)} Parameters`} -

-
-
-
    - {params.map((param, index) => ( - - ))} -
-
-
- ); -}; - export const ResponseHeaders: React.FC<{ responseHeaders?: Record; }> = ({ responseHeaders }) => {