overleaf/services/web/frontend/stories/settings/emails.stories.js
Timothée Alby 666c2c3b47 Merge pull request #8178 from overleaf/ta-settings-reconfirmation
[SettingsPage] Add Reconfirmation Prompt

GitOrigin-RevId: 2e03ba7f459b32faf6d66f21ba692ca54f62a320
2022-06-01 08:03:53 +00:00

35 lines
794 B
JavaScript

import EmailsSection from '../../js/features/settings/components/emails-section'
import useFetchMock from './../hooks/use-fetch-mock'
import {
setDefaultMeta,
setReconfirmationMeta,
defaultSetupMocks,
reconfirmationSetupMocks,
errorsMocks,
} from './helpers/emails'
export const EmailsList = args => {
useFetchMock(defaultSetupMocks)
setDefaultMeta()
return <EmailsSection {...args} />
}
export const ReconfirmationEmailsList = args => {
useFetchMock(reconfirmationSetupMocks)
setReconfirmationMeta()
return <EmailsSection {...args} />
}
export const NetworkErrors = args => {
useFetchMock(errorsMocks)
setDefaultMeta()
return <EmailsSection {...args} />
}
export default {
title: 'Account Settings / Emails and Affiliations',
component: EmailsSection,
}