diff --git a/src/components/views/typography/Caption.tsx b/src/components/views/typography/Caption.tsx
index 69e7714b22..89fd551ed5 100644
--- a/src/components/views/typography/Caption.tsx
+++ b/src/components/views/typography/Caption.tsx
@@ -19,13 +19,14 @@ import React, { HTMLAttributes } from "react";
interface Props extends Omit
, "className"> {
children: React.ReactNode;
+ className?: string;
isError?: boolean;
}
-export const Caption: React.FC = ({ children, isError, ...rest }) => {
+export const Caption: React.FC = ({ children, className, isError, ...rest }) => {
return (
{
// higher priority number will be shown on top of lower priority
priority: number;
title?: string;
+ /**
+ * Icon class.
+ *
+ * @deprecated Use iconElement instead.
+ */
icon?: string;
+ /** Icon element. Displayed left of the title. */
+ iconElement?: ReactElement;
component: C;
className?: string;
bodyClassName?: string;
diff --git a/src/toasts/IncomingLegacyCallToast.tsx b/src/toasts/IncomingLegacyCallToast.tsx
index 26ea393332..147a35a1d0 100644
--- a/src/toasts/IncomingLegacyCallToast.tsx
+++ b/src/toasts/IncomingLegacyCallToast.tsx
@@ -119,7 +119,7 @@ export default class IncomingLegacyCallToast extends React.Component
{isVoice ? _t("Voice call") : _t("Video call")}
-