From 6b10f918148953b3b8926eae7ddcfba8b2441062 Mon Sep 17 00:00:00 2001 From: github-actions Date: Sun, 18 Oct 2020 00:12:58 -0700 Subject: [PATCH] feat #119 - Fix build errors --- src/__snapshots__/storybook.test.ts.snap | 38 +------------------ .../Form/FieldLabel/FieldLabel.test.tsx | 2 +- .../NotificationV2/__tests__/utils.test.tsx | 2 +- src/components/NotificationV2/utils.ts | 2 +- 4 files changed, 4 insertions(+), 40 deletions(-) diff --git a/src/__snapshots__/storybook.test.ts.snap b/src/__snapshots__/storybook.test.ts.snap index 8c9bb5c9..414bb62e 100644 --- a/src/__snapshots__/storybook.test.ts.snap +++ b/src/__snapshots__/storybook.test.ts.snap @@ -238,7 +238,7 @@ exports[`Storyshots Input Error 1`] = ` className="container-0-2-5 container-d5-0-2-14" > `; -exports[`Storyshots NotificationDark Default 1`] = ` -
- -
-`; - -exports[`Storyshots NotificationLight Default 1`] = ` -
- -
-`; - exports[`Storyshots Notifications Error 1`] = `
diff --git a/src/components/NotificationV2/__tests__/utils.test.tsx b/src/components/NotificationV2/__tests__/utils.test.tsx index 8644d8b2..1970862f 100644 --- a/src/components/NotificationV2/__tests__/utils.test.tsx +++ b/src/components/NotificationV2/__tests__/utils.test.tsx @@ -36,7 +36,7 @@ describe('useCreateDomElement', () => { popupContainerElement.setAttribute('id', popupContainerId) document.body.appendChild(popupContainerElement) - const { unmount } = renderHook(() => + renderHook(() => useCreateDomElement( () => document.querySelector( diff --git a/src/components/NotificationV2/utils.ts b/src/components/NotificationV2/utils.ts index a712f636..7121996d 100644 --- a/src/components/NotificationV2/utils.ts +++ b/src/components/NotificationV2/utils.ts @@ -75,7 +75,7 @@ export const useNotifications = () => { } ]) - // setTimeout(removeNotification, duration) + setTimeout(removeNotification, duration) }, [] )