Skip to content

Commit

Permalink
ref(dashboards): Export Widget component props (#81924)
Browse files Browse the repository at this point in the history
Useful to other components and these names are better.
  • Loading branch information
gggritso authored Dec 10, 2024
1 parent f93a030 commit a7387f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ import type {StateProps} from '../common/types';

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

interface Props
export interface BigNumberWidgetProps
extends StateProps,
Omit<WidgetFrameProps, 'children'>,
Partial<BigNumberWidgetVisualizationProps> {}

export function BigNumberWidget(props: Props) {
export function BigNumberWidget(props: BigNumberWidgetProps) {
const {value, previousPeriodValue, field} = props;

if (props.isLoading) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ import {
import {MISSING_DATA_MESSAGE, X_GUTTER, Y_GUTTER} from '../common/settings';
import type {StateProps} from '../common/types';

interface Props
export interface LineChartWidgetProps
extends StateProps,
Omit<WidgetFrameProps, 'children'>,
Partial<LineChartWidgetVisualizationProps> {}

export function LineChartWidget(props: Props) {
export function LineChartWidget(props: LineChartWidgetProps) {
const {timeseries} = props;

if (props.isLoading) {
Expand Down

0 comments on commit a7387f1

Please sign in to comment.