From c37c0f78f5c35c4ac4f1036730ff72a927925349 Mon Sep 17 00:00:00 2001 From: "a.valenti.89" Date: Fri, 8 Mar 2024 16:29:32 +0100 Subject: [PATCH] moves iconVariant to SharedProps --- src/types.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/types.ts b/src/types.ts index 54dbe7d..ef8ea28 100644 --- a/src/types.ts +++ b/src/types.ts @@ -252,6 +252,10 @@ export interface SharedProps extends Partia * @param {string|number} key key of a snackbar */ action?: SnackbarAction; + /** + * Mapping between variants and an icon component + */ + iconVariant?: Partial>; /** * Hides iconVariant if set to `true`. * @default false @@ -377,10 +381,6 @@ export interface SnackbarProviderProps extends SharedProps { * Override or extend the styles applied to the container component or Snackbars. */ classes?: Partial>; - /** - * Mapping between variants and an icon component - */ - iconVariant?: Partial>; /** * @ignore * SnackbarProvider's ref