mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Update types and themes usage in components
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import coreModule from 'app/core/core_module';
|
||||
import { provideConfig } from 'app/core/utils/ConfigProvider';
|
||||
import { provideTheme } from 'app/core/utils/ConfigProvider';
|
||||
|
||||
export function react2AngularDirective(name: string, component: any, options: any) {
|
||||
coreModule.directive(name, [
|
||||
'reactDirective',
|
||||
reactDirective => {
|
||||
return reactDirective(provideConfig(component), options);
|
||||
return reactDirective(provideTheme(component), options);
|
||||
},
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user