mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 10:03:33 -06:00
* Updated package json but not updated source files * Update eslint plugin * updated files
12 lines
352 B
TypeScript
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);
|
|
},
|
|
]);
|
|
}
|