grafana/public/app/core/utils/react2angular.ts
Torkel Ödegaard 1d689888b0
Prettier: Upgrade to 2 (#30387)
* Updated package json but not updated source files

* Update eslint plugin

* updated files
2021-01-20 07:59:48 +01:00

12 lines
352 B
TypeScript

import coreModule from 'app/core/core_module';
import { provideTheme } from 'app/core/utils/ConfigProvider';
export function react2AngularDirective(name: string, component: any, options: any) {
coreModule.directive(name, [
'reactDirective',
(reactDirective) => {
return reactDirective(provideTheme(component), options);
},
]);
}