fix(docs): typos! (#4148)
This commit is contained in:
@@ -20,16 +20,16 @@ class OperationsLayout extends React.Component {
|
|||||||
|
|
||||||
const Operations = getComponent("Operations", true)
|
const Operations = getComponent("Operations", true)
|
||||||
|
|
||||||
return {
|
return (
|
||||||
<div>
|
<div>
|
||||||
<Operations />
|
<Operations />
|
||||||
</div>
|
</div>
|
||||||
}
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create the plugin that provides our layout component
|
// Create the plugin that provides our layout component
|
||||||
const OperationsLayoutPlugin = function() {
|
const OperationsLayoutPlugin = () => {
|
||||||
return {
|
return {
|
||||||
components: {
|
components: {
|
||||||
OperationsLayout: OperationsLayout
|
OperationsLayout: OperationsLayout
|
||||||
@@ -62,19 +62,19 @@ class AugmentingLayout extends React.Component {
|
|||||||
|
|
||||||
const BaseLayout = getComponent("BaseLayout", true)
|
const BaseLayout = getComponent("BaseLayout", true)
|
||||||
|
|
||||||
return {
|
return (
|
||||||
<div>
|
<div>
|
||||||
<div className="myCustomHeader">
|
<div className="myCustomHeader">
|
||||||
<h1>I have a custom header above Swagger-UI!</h1>
|
<h1>I have a custom header above Swagger-UI!</h1>
|
||||||
</div>
|
</div>
|
||||||
<BaseLayout />
|
<BaseLayout />
|
||||||
</div>
|
</div>
|
||||||
}
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create the plugin that provides our layout component
|
// Create the plugin that provides our layout component
|
||||||
const AugmentingLayoutPlugin = function() {
|
const AugmentingLayoutPlugin = () => {
|
||||||
return {
|
return {
|
||||||
components: {
|
components: {
|
||||||
AugmentingLayout: AugmentingLayout
|
AugmentingLayout: AugmentingLayout
|
||||||
|
|||||||
Reference in New Issue
Block a user