Add OAS3 indicator
This commit is contained in:
@@ -87,12 +87,13 @@ export default class Info extends React.Component {
|
||||
const { url:externalDocsUrl, description:externalDocsDescription } = (externalDocs || fromJS({})).toJS()
|
||||
|
||||
const Markdown = getComponent("Markdown")
|
||||
const VersionStamp = getComponent("VersionStamp")
|
||||
|
||||
return (
|
||||
<div className="info">
|
||||
<hgroup className="main">
|
||||
<h2 className="title" >{ title }
|
||||
{ version && <small><pre className="version"> { version } </pre></small> }
|
||||
{ version && <VersionStamp version={version}></VersionStamp> }
|
||||
</h2>
|
||||
{ host || basePath ? <Path host={ host } basePath={ basePath } /> : null }
|
||||
{ url && <a target="_blank" href={ url }><span className="url"> { url } </span></a> }
|
||||
|
||||
5
src/core/components/version-stamp.jsx
Normal file
5
src/core/components/version-stamp.jsx
Normal file
@@ -0,0 +1,5 @@
|
||||
import React from "react"
|
||||
|
||||
export default ({ version }) => {
|
||||
return <small><pre className="version"> { version } </pre></small>
|
||||
}
|
||||
Reference in New Issue
Block a user