feat: add support for markdown in Server Object

This commit is contained in:
Roman Hotsiy 2018-11-27 11:43:31 +02:00
parent 3673720497
commit 155d214509
No known key found for this signature in database
GPG Key ID: 5CB7B3ACABA57CB0

View File

@ -1,6 +1,7 @@
import * as React from 'react';
import { ShelfIcon } from '../../common-elements';
import { OperationModel } from '../../services';
import { Markdown } from '../Markdown/Markdown';
import { OptionsContext } from '../OptionsProvider';
import { SelectOnClick } from '../SelectOnClick/SelectOnClick';
@ -61,7 +62,7 @@ export class Endpoint extends React.Component<EndpointProps, EndpointState> {
<ServersOverlay expanded={expanded}>
{operation.servers.map(server => (
<ServerItem key={server.url}>
<div>{server.description}</div>
<Markdown source={server.description || ''} compact={true} />
<SelectOnClick>
<ServerUrl>
<span>