Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
export function injectedCellRenderer(getComponent, cellRenderer, avroRenderer) {
const Component = Inject.get(getComponent, cellRenderer, DefaultCellRenderer);
return props => ;
}
}
agGridOptions.columnDefs = adaptedColumnDefs;
agGridOptions.frameworkComponents = {
[CELL_RENDERER_COMPONENT]: injectedCellRenderer(
this.props.getComponent,
this.props.cellRenderer,
getAvroRenderer(this.props.avroRenderer),
),
[HEADER_RENDERER_COMPONENT]: injectedHeaderRenderer(
this.props.getComponent,
this.props.headerRenderer,
this.onFocusedColumn,
this.onKeyDownHeaderColumn,
),
[PIN_HEADER_RENDERER_COMPONENT]: Inject.get(
this.props.getComponent,
this.props.pinHeaderRenderer,
DefaultPinHeaderRenderer,
),
};
return agGridOptions;
}
export function injectedHeaderRenderer(getComponent, headerRenderer, onFocusedColumn, onKeyDown) {
const Component = Inject.get(getComponent, headerRenderer, DefaultHeaderRenderer);
return props => ;
}