Skip to content

Commit

Permalink
fix unintentional shadowing
Browse files Browse the repository at this point in the history
  • Loading branch information
davidjgoss committed Mar 6, 2021
1 parent c8d8e3b commit 7cbb29e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions react/javascript/src/components/gherkin/DocString.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ import {
} from '../customise/CustomRendering'

const DocString: React.FunctionComponent<DocStringProps> = ({ docString }) => {
const { DocString } = useContext(CustomRenderingContext)
if (typeof DocString === 'function') {
return <DocString docString={docString} />
const { DocString: Custom } = useContext(CustomRenderingContext)
if (typeof Custom === 'function') {
return <Custom docString={docString} />
}
return (
<pre className={(DocString ?? styles).docstring}>
<pre className={(Custom ?? styles).docstring}>
<HighLight text={docString.content} />
</pre>
)
Expand Down

0 comments on commit 7cbb29e

Please sign in to comment.