Skip to content

Commit

Permalink
Feat: add story for no notification case
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderleegs committed Oct 7, 2022
1 parent dcd583f commit 89a7233
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/components/Header/Header.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,11 @@ import { MemoryRouter, Route } from "react-router-dom"

import { SiteEditHeader } from "layouts/layouts/SiteEditLayout"

import { buildAllNotificationData, buildGetStagingUrlData } from "mocks/utils"
import {
buildRecentNotificationData,
buildAllNotificationData,
buildGetStagingUrlData,
} from "mocks/utils"

import { handlers } from "../../mocks/handlers"

Expand Down Expand Up @@ -49,4 +53,15 @@ LoadingAll.parameters = {
},
}

export const NoNotifications = Template.bind({})
NoNotifications.parameters = {
msw: {
handlers: [
buildRecentNotificationData([]),
buildAllNotificationData([]),
...handlers,
],
},
}

export default HeaderMeta

0 comments on commit 89a7233

Please sign in to comment.