Skip to content

Commit

Permalink
feat(Toaster)!: remove deprecated isOverride prop (#734)
Browse files Browse the repository at this point in the history
  • Loading branch information
amje committed Jul 14, 2023
1 parent 6c5d098 commit be97e59
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/components/Toaster/Provider/ToasterProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ export const ToasterProvider = React.forwardRef<ToasterPublicMethods, Props>(
{
...toasts[index],
...override,
isOverride: true,
},
...toasts.slice(index + 1),
];
Expand Down
1 change: 0 additions & 1 deletion src/components/Toaster/__stories__/Toaster.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@ export default {
content: disabledControl,
type: disabledControl,
isClosable: disabledControl,
isOverride: disabledControl,
actions: disabledControl,
removeCallback: disabledControl,
createSameName: booleanControl('Same name'),
Expand Down
3 changes: 0 additions & 3 deletions src/components/Toaster/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ export type ToastProps = {
content?: React.ReactNode;
type?: ToastType;
isClosable?: boolean;
// FIXME: BREAKING CHANGE.
/** @deprecated This prop was part of private API. It is no longer used and Will be deleted */
isOverride?: boolean;
actions?: ToastAction[];

/** Function. Use for toast icon customization. By default type-based behavior is used */
Expand Down

0 comments on commit be97e59

Please sign in to comment.