File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11import React from "react"
22import PropTypes from "prop-types"
3- import swaggerUIConstructor , { presets } from "./swagger-ui-es-bundle-core"
3+ import swaggerUIConstructor from "./swagger-ui-es-bundle-core"
4+
45export default class SwaggerUI extends React . Component {
56 constructor ( props ) {
67 super ( props )
@@ -16,7 +17,7 @@ export default class SwaggerUI extends React.Component {
1617 layout : this . props . layout ,
1718 defaultModelsExpandDepth : this . props . defaultModelsExpandDepth ,
1819 defaultModelRendering : this . props . defaultModelRendering ,
19- presets : [ presets . apis , ...this . props . presets ] ,
20+ presets : [ swaggerUIConstructor . presets . apis , ...this . props . presets ] ,
2021 requestInterceptor : this . requestInterceptor ,
2122 responseInterceptor : this . responseInterceptor ,
2223 onComplete : this . onComplete ,
@@ -163,3 +164,6 @@ SwaggerUI.defaultProps = {
163164 } ,
164165 persistAuthorization : false ,
165166}
167+
168+ SwaggerUI . presets = swaggerUIConstructor . presets ;
169+ SwaggerUI . plugins = swaggerUIConstructor . plugins ;
You can’t perform that action at this time.
0 commit comments