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 { startCase } from 'lodash';
|
||||
|
||||
import { FieldLabel } from '../../common-elements/fields';
|
||||
|
||||
import styled from '../../styled-components';
|
||||
|
@ -30,7 +28,7 @@ export class Extensions extends React.PureComponent<ExtensionsProps> {
|
|||
{options.showExtensions &&
|
||||
Object.keys(this.props.extensions).map(key => (
|
||||
<Extension key={key}>
|
||||
<FieldLabel>{startCase(key.substring(2))}</FieldLabel>:{' '}
|
||||
<FieldLabel>{key.substring(2)}</FieldLabel>:{' '}
|
||||
<code>
|
||||
{JSON.stringify(this.props.extensions[key]).replace(/(^")|("$)/g, '')}
|
||||
</code>
|
||||
|
|
Loading…
Reference in New Issue
Block a user