chore(lint): convert react-pivottable components to function components

Converts PivotTable and TableRenderers in the plugin-chart-pivot-table
react-pivottable fork from class components to function components.
Updates associated unit test.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Evan Rusackas
2026-04-17 10:33:57 -07:00
parent 0d681338aa
commit 922befa831
3 changed files with 1390 additions and 2186 deletions

View File

@@ -17,16 +17,14 @@
* under the License.
*/
import { PureComponent } from 'react';
import { memo } from 'react';
import { TableRenderer } from './TableRenderers';
import type { ComponentProps } from 'react';
type PivotTableProps = ComponentProps<typeof TableRenderer>;
class PivotTable extends PureComponent<PivotTableProps> {
render() {
return <TableRenderer {...this.props} />;
}
function PivotTable(props: PivotTableProps) {
return <TableRenderer {...props} />;
}
export default PivotTable;
export default memo(PivotTable);