Skip to content

Commit

Permalink
chore: rename dense to compact
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanHotsiy committed Sep 10, 2018
1 parent cd5d213 commit c5540a9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/components/Fields/FieldDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ export class FieldDetails extends React.PureComponent<FieldProps> {
{!renderDiscriminatorSwitch && <EnumValues type={schema.type} values={schema.enum} />}{' '}
{showExamples && <FieldDetail label={'Example:'} value={example} />}
<div>
<Markdown dense={true} source={description} />
<Markdown compact={true} source={description} />
</div>
{schema.externalDocs && (
<ExternalDocumentation externalDocs={schema.externalDocs} compact={true} />
Expand Down
2 changes: 1 addition & 1 deletion src/components/Markdown/AdvancedMarkdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export class AdvancedMarkdown extends React.Component<AdvancedMarkdownProps> {
return parts.map((part, idx) => {
if (typeof part === 'string') {
return React.cloneElement(
htmlWrap(<SanitizedMarkdownHTML html={part} inline={false} dense={false} />),
htmlWrap(<SanitizedMarkdownHTML html={part} inline={false} compact={false} />),
{ key: idx },
);
}
Expand Down
6 changes: 3 additions & 3 deletions src/components/Markdown/Markdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { MarkdownRenderer } from '../../services';
import { SanitizedMarkdownHTML } from './SanitizedMdBlock';

export interface StylingMarkdownProps {
dense?: boolean;
compact?: boolean;
inline?: boolean;
}

Expand All @@ -21,13 +21,13 @@ export type MarkdownProps = BaseMarkdownProps &

export class Markdown extends React.Component<MarkdownProps> {
render() {
const { source, inline, dense, className } = this.props;
const { source, inline, compact, className } = this.props;
const renderer = new MarkdownRenderer();
return (
<SanitizedMarkdownHTML
html={renderer.renderMd(source)}
inline={inline}
dense={dense}
compact={compact}
className={className}
/>
);
Expand Down
2 changes: 1 addition & 1 deletion src/components/Responses/ResponseTitle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class ResponseTitle extends React.PureComponent<ResponseTitleProps> {
/>
)}
<strong>{code} </strong>
<Markdown dense={true} inline={true} source={title} />
<Markdown compact={true} inline={true} source={title} />
</div>
);
}
Expand Down

0 comments on commit c5540a9

Please sign in to comment.