No Partial<AlertMessage>

Signed-off-by: Gustaf Räntilä <g.rantila@gmail.com>
This commit is contained in:
Gustaf Räntilä
2022-11-30 13:46:32 +01:00
parent e4103e4438
commit f42a6c0190
@@ -42,7 +42,7 @@ export type AlertDisplayProps = {
/** @public */
export function AlertDisplay(props: AlertDisplayProps) {
const [messages, setMessages] = useState<Array<Partial<AlertMessage>>>([]);
const [messages, setMessages] = useState<Array<AlertMessage>>([]);
const alertApi = useApi(alertApiRef);
const { anchorOrigin = { vertical: 'top', horizontal: 'center' } } = props;