Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

moves iconVariant to SharedProps #598

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,10 @@ export interface SharedProps<V extends VariantType = VariantType> extends Partia
* @param {string|number} key key of a snackbar
*/
action?: SnackbarAction;
/**
* Mapping between variants and an icon component
*/
iconVariant?: Partial<Record<VariantType, React.ReactNode>>;
/**
* Hides iconVariant if set to `true`.
* @default false
Expand Down Expand Up @@ -377,10 +381,6 @@ export interface SnackbarProviderProps extends SharedProps {
* Override or extend the styles applied to the container component or Snackbars.
*/
classes?: Partial<ClassNameMap<CombinedClassKey>>;
/**
* Mapping between variants and an icon component
*/
iconVariant?: Partial<Record<VariantType, React.ReactNode>>;
/**
* @ignore
* SnackbarProvider's ref
Expand Down