mirror of
https://github.com/Redocly/redoc.git
synced 2025-07-11 00:32:36 +03:00
fix: fix SourceCodeWithCopy component to be non-pure
This commit is contained in:
parent
bc19750771
commit
040ce72a8a
|
@ -16,7 +16,7 @@ export class SourceCode extends React.PureComponent<SourceCodeProps> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export class SourceCodeWithCopy extends React.PureComponent<SourceCodeProps> {
|
export class SourceCodeWithCopy extends React.Component<SourceCodeProps> {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<CopyButtonWrapper data={this.props.source}>
|
<CopyButtonWrapper data={this.props.source}>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user