mirror of
https://github.com/grafana/grafana.git
synced 2026-08-17 16:45:05 -05:00
Add typing for react-inlinesvg mock now its included in tsconfig
This commit is contained in:
committed by
Tom Ratcliffe
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} />;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user