Skip to content

Commit 91cc114

Browse files
authored
ref(alerts): Add prop types to alert ErrorChart (#96705)
remove any prop type
1 parent b97eee2 commit 91cc114

File tree

1 file changed

+12
-1
lines changed
  • static/app/views/alerts/rules/metric/triggers/chart

1 file changed

+12
-1
lines changed

static/app/views/alerts/rules/metric/triggers/chart/index.tsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,18 @@ const ChartErrorWrapper = styled('div')`
689689
margin-top: ${space(2)};
690690
`;
691691

692-
export function ErrorChart({isAllowIndexed, isQueryValid, errorMessage, ...props}: any) {
692+
interface ErrorChartProps extends React.ComponentProps<'div'> {
693+
isAllowIndexed: boolean;
694+
isQueryValid: boolean;
695+
errorMessage?: React.ReactNode;
696+
}
697+
698+
export function ErrorChart({
699+
isAllowIndexed,
700+
isQueryValid,
701+
errorMessage,
702+
...props
703+
}: ErrorChartProps) {
693704
return (
694705
<ChartErrorWrapper {...props}>
695706
<PanelAlert type="error">

0 commit comments

Comments
 (0)