updates addNotification type hints in components

This commit is contained in:
Mose Müller
2023-11-27 15:41:30 +01:00
parent 914997cc6b
commit 613b1dd6a4
12 changed files with 24 additions and 12 deletions

View File

@ -3,6 +3,7 @@ import { Card, Collapse, Image } from 'react-bootstrap';
import { DocStringComponent } from './DocStringComponent';
import { ChevronDown, ChevronRight } from 'react-bootstrap-icons';
import { getIdFromFullAccessPath } from '../utils/stringUtils';
import { LevelName } from './NotificationsComponent';
interface ImageComponentProps {
name: string;
@ -11,7 +12,7 @@ interface ImageComponentProps {
readOnly: boolean;
docString: string;
format: string;
addNotification: (message: string) => void;
addNotification: (message: string, levelname?: LevelName) => void;
}
export const ImageComponent = React.memo((props: ImageComponentProps) => {