@unitedstatespowersquadrons/components 1.2.16-pre.1 → 1.2.16-pre.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -61,12 +61,8 @@ export function removeToast<T extends AppStateWithToasts>(draft: Draft<T>, toast
61
61
  });
62
62
  }
63
63
 
64
- export function dismissAndRemoveToast<T extends AppStateWithToasts>(draft: Draft<T>, toastId: number) {
64
+ export function removeToastById<T extends AppStateWithToasts>(draft: Draft<T>, toastId: number) {
65
65
  const toast = draft.toasts.find(t => t.id === toastId);
66
66
 
67
- if (!toast) return;
68
-
69
- toast.dismissed = true;
70
-
71
- setTimeout(() => removeToast(draft, toast), 2000);
67
+ if (toast) removeToast(draft, toast);
72
68
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@unitedstatespowersquadrons/components",
3
- "version": "1.2.16-pre.1",
3
+ "version": "1.2.16-pre.2",
4
4
  "description": "USPS shared React components library",
5
5
  "main": "index.tsx",
6
6
  "scripts": {