grafana/public/test/mocks/react-inlinesvg.tsx
Ashley Harrison 07cc7504ee
Icon: Simplify and remove wrapping <div> (#76819)
* remove wrapping div

* update tests, just gotta figure out how to handle fontawesome :(

* add spinner.svg which matches the font-awesome spinner

* add mock for react-inlinesvg

* update mock and fix some tests

* fix FormField test

* fix CorrelationsPage tests

* increase timeout
2023-10-24 12:16:32 +01:00

8 lines
211 B
TypeScript

import React from 'react';
export default function ReactInlineSVG({ src, innerRef, cacheRequests, preProcessor, ...rest }) {
return <svg id={src} ref={innerRef} {...rest} />;
}
export const cacheStore = {};