Only display API version if present

This commit is contained in:
Patrick Niklaus 2019-01-08 12:40:57 +01:00
parent ab943a8dd5
commit 4b302d54dc

View File

@ -70,12 +70,18 @@ export class ApiInfo extends React.Component<ApiInfoProps> {
)) || )) ||
null; null;
const version =
(info.version && (
<span>({info.version})</span>
)) ||
null;
return ( return (
<Section> <Section>
<Row> <Row>
<MiddlePanel className="api-info"> <MiddlePanel className="api-info">
<ApiHeader> <ApiHeader>
{info.title} <span>({info.version})</span> {info.title} {version}
</ApiHeader> </ApiHeader>
{!hideDownloadButton && ( {!hideDownloadButton && (
<p> <p>