File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
views/releases/detail/overview/releaseComparisonChart Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change 1- import { Component } from 'react' ;
2-
31import type { AreaChartProps } from 'sentry/components/charts/areaChart' ;
42import { AreaChart } from 'sentry/components/charts/areaChart' ;
53
6- class StackedAreaChart extends Component < AreaChartProps > {
7- render ( ) {
8- return < AreaChart tooltip = { { filter : val => val > 0 } } { ...this . props } stacked /> ;
9- }
4+ function StackedAreaChart ( props : AreaChartProps ) {
5+ return < AreaChart tooltip = { { filter : val => val > 0 } } { ...props } stacked /> ;
106}
117
128export default StackedAreaChart ;
Original file line number Diff line number Diff line change @@ -124,9 +124,7 @@ class ReleaseSessionsChart extends Component<Props> {
124124 }
125125 }
126126
127- getChart ( ) :
128- | React . ComponentType < StackedAreaChart [ 'props' ] >
129- | React . ComponentType < AreaChartProps > {
127+ getChart ( ) : React . ComponentType < AreaChartProps > {
130128 const { chartType} = this . props ;
131129 switch ( chartType ) {
132130 case ReleaseComparisonChartType . CRASH_FREE_SESSIONS :
You can’t perform that action at this time.
0 commit comments