MCPcopy
hub / github.com/swagger-api/swagger-ui / render

Method render

src/core/components/license.jsx:17–37  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

15 }
16
17 render() {
18 const { license, getComponent, selectedServer, url: specUrl } = this.props
19 const name = license.get("name", "License")
20 const url = safeBuildUrl(license.get("url"), specUrl, { selectedServer })
21
22 const Link = getComponent("Link")
23
24 return (
25 <div className="info__license">
26 {url ? (
27 <div className="info__license__url">
28 <Link target="_blank" href={sanitizeUrl(url)}>
29 {name}
30 </Link>
31 </div>
32 ) : (
33 <span>{name}</span>
34 )}
35 </div>
36 )
37 }
38}
39
40export default License

Callers

nothing calls this directly

Calls 4

safeBuildUrlFunction · 0.90
sanitizeUrlFunction · 0.90
getComponentFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected