diff --git a/spiffworkflow-frontend/src/a-spiffui-v3/components/ErrorDisplay.tsx b/spiffworkflow-frontend/src/a-spiffui-v3/components/ErrorDisplay.tsx index f15d768b3..e15b8072f 100644 --- a/spiffworkflow-frontend/src/a-spiffui-v3/components/ErrorDisplay.tsx +++ b/spiffworkflow-frontend/src/a-spiffui-v3/components/ErrorDisplay.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { SyntheticEvent } from 'react'; import { Alert, AlertTitle } from '@mui/material'; import useAPIError from '../hooks/UseApiError'; import { @@ -154,7 +154,7 @@ export const childrenForErrorObject = (errorObject: ErrorForDisplay) => { export function errorDisplayStateless( errorObject: ErrorForDisplay, - onClose?: Function, + onClose?: (event: SyntheticEvent) => void, ) { const title = 'Error:'; const hideCloseButton = !onClose;