Skip to content

Commit a7387f1

Browse files
authored
ref(dashboards): Export Widget component props (#81924)
Useful to other components and these names are better.
1 parent f93a030 commit a7387f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

static/app/views/dashboards/widgets/bigNumberWidget/bigNumberWidget.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ import type {StateProps} from '../common/types';
2121

2222
import {DEEMPHASIS_COLOR_NAME, LOADING_PLACEHOLDER} from './settings';
2323

24-
interface Props
24+
export interface BigNumberWidgetProps
2525
extends StateProps,
2626
Omit<WidgetFrameProps, 'children'>,
2727
Partial<BigNumberWidgetVisualizationProps> {}
2828

29-
export function BigNumberWidget(props: Props) {
29+
export function BigNumberWidget(props: BigNumberWidgetProps) {
3030
const {value, previousPeriodValue, field} = props;
3131

3232
if (props.isLoading) {

static/app/views/dashboards/widgets/lineChartWidget/lineChartWidget.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ import {
1515
import {MISSING_DATA_MESSAGE, X_GUTTER, Y_GUTTER} from '../common/settings';
1616
import type {StateProps} from '../common/types';
1717

18-
interface Props
18+
export interface LineChartWidgetProps
1919
extends StateProps,
2020
Omit<WidgetFrameProps, 'children'>,
2121
Partial<LineChartWidgetVisualizationProps> {}
2222

23-
export function LineChartWidget(props: Props) {
23+
export function LineChartWidget(props: LineChartWidgetProps) {
2424
const {timeseries} = props;
2525

2626
if (props.isLoading) {

0 commit comments

Comments
 (0)