Skip to content

ref(components): convert StackedAreaChart from class to function component#109601

Open
JoshuaKGoldberg wants to merge 1 commit intomasterfrom
function-component-stacked-area-chart
Open

ref(components): convert StackedAreaChart from class to function component#109601
JoshuaKGoldberg wants to merge 1 commit intomasterfrom
function-component-stacked-area-chart

Conversation

@JoshuaKGoldberg
Copy link
Member

This is a 5-liner. If it causes any bugs I will be amazed.

@github-actions github-actions bot added the Scope: Frontend Automatically applied to PRs that change frontend components label Feb 27, 2026
getChart():
| React.ComponentType<StackedAreaChart['props']>
| React.ComponentType<AreaChartProps> {
getChart(): React.ComponentType<AreaChartProps> {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StackedAreaChart['props'] was AreaChartProps already! Duplicate type constituents. https://typescript-eslint.io/rules/no-duplicate-type-constituents/

@JoshuaKGoldberg JoshuaKGoldberg changed the title ref(components); convert StackedAreaChart from class to function component ref(components): convert StackedAreaChart from class to function component Feb 27, 2026
@JoshuaKGoldberg JoshuaKGoldberg marked this pull request as ready for review February 27, 2026 20:41
@JoshuaKGoldberg JoshuaKGoldberg requested review from a team as code owners February 27, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Frontend Automatically applied to PRs that change frontend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant