mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Add typing for react-inlinesvg mock now its included in tsconfig
This commit is contained in:
parent
0f88075e4c
commit
045ec86984
@ -1,6 +1,17 @@
|
||||
import React from 'react';
|
||||
import React, { Ref } from 'react';
|
||||
|
||||
export default function ReactInlineSVG({ src, innerRef, cacheRequests, preProcessor, ...rest }) {
|
||||
export default function ReactInlineSVG({
|
||||
src,
|
||||
innerRef,
|
||||
cacheRequests,
|
||||
preProcessor,
|
||||
...rest
|
||||
}: {
|
||||
src: string;
|
||||
innerRef: Ref<SVGSVGElement>;
|
||||
cacheRequests: boolean;
|
||||
preProcessor: () => string;
|
||||
}) {
|
||||
return <svg id={src} ref={innerRef} {...rest} />;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user