Skip to content

Commit

Permalink
feat: add support for markdown in Server Object
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Nov 27, 2018
1 parent 3673720 commit 155d214
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Endpoint/Endpoint.tsx
Original file line number Diff line number Diff line change
@@ -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';

Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit 155d214

Please sign in to comment.