mirror of
https://github.com/Redocly/redoc.git
synced 2025-08-08 06:04:56 +03:00
Remove importing code from Lodash
This commit is contained in:
parent
cb86e41251
commit
e8071b42ea
|
@ -1,7 +1,5 @@
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
|
||||||
import { startCase } from 'lodash';
|
|
||||||
|
|
||||||
import { FieldLabel } from '../../common-elements/fields';
|
import { FieldLabel } from '../../common-elements/fields';
|
||||||
|
|
||||||
import styled from '../../styled-components';
|
import styled from '../../styled-components';
|
||||||
|
@ -30,7 +28,7 @@ export class Extensions extends React.PureComponent<ExtensionsProps> {
|
||||||
{options.showExtensions &&
|
{options.showExtensions &&
|
||||||
Object.keys(this.props.extensions).map(key => (
|
Object.keys(this.props.extensions).map(key => (
|
||||||
<Extension key={key}>
|
<Extension key={key}>
|
||||||
<FieldLabel>{startCase(key.substring(2))}</FieldLabel>:{' '}
|
<FieldLabel>{key.substring(2)}</FieldLabel>:{' '}
|
||||||
<code>
|
<code>
|
||||||
{JSON.stringify(this.props.extensions[key]).replace(/(^")|("$)/g, '')}
|
{JSON.stringify(this.props.extensions[key]).replace(/(^")|("$)/g, '')}
|
||||||
</code>
|
</code>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user