Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
rowRenderer = rowProps => {
const { loadingClassName } = this.props;
if (!this.rows[rowProps.index]) {
rowProps.className = cx(rowProps.className, cs.loading, loadingClassName);
}
return defaultTableRowRenderer(rowProps);
};
rowRenderer={props => <div>{defaultTableRowRenderer(props)}</div>}
>
rowRenderer = rowProps => {
const data = rowProps.rowData;
if (data) {
rowProps.className = cx(
rowProps.className,
cs[`${data.taxLevel}Row`],
data.highlighted && cs.highlighted
);
}
return defaultTableRowRenderer(rowProps);
};