Skip to content

Commit

Permalink
Merge pull request #26104 from thisisanto/anto/fix-function-arg-rende…
Browse files Browse the repository at this point in the history
…rs-in-docs

Fix function prop rendering as `noRefCheck` in storybook docs
  • Loading branch information
valentinpalkovic authored Feb 27, 2024
2 parents a6533cc + bde4f3c commit 7589b50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/renderers/react/src/docs/jsxDecorator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export const renderJsx = (code: React.ReactElement, options: JSXOptions) => {
return string;
}).join('\n');

return result.replace(/function\s+noRefCheck\(\)\s+\{\}/g, '() => {}');
return result.replace(/function\s+noRefCheck\(\)\s*\{\}/g, '() => {}');
};

const defaultOpts = {
Expand Down

0 comments on commit 7589b50

Please sign in to comment.