mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 13:39:19 -06:00
27f66a6df9
* moving coreModule to app/angular and isolating it more * fixed ts issue
12 lines
355 B
TypeScript
12 lines
355 B
TypeScript
import coreModule from 'app/angular/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);
|
|
},
|
|
]);
|
|
}
|