chore: improve React import reference consistency (#18608)

This commit is contained in:
Adam Dobrawy
2022-02-11 06:03:16 +01:00
committed by GitHub
parent 78e20e21ab
commit 7c69a1bc60
10 changed files with 57 additions and 48 deletions

View File

@@ -17,9 +17,9 @@
* under the License.
*/
import React, { SVGProps } from 'react';
import React, { SVGProps, forwardRef } from 'react';
const SvgrMock = React.forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>(
const SvgrMock = forwardRef<SVGSVGElement, SVGProps<SVGSVGElement>>(
(props, ref) => <svg ref={ref} {...props} />,
);