2022-04-22 09:49:26 -04:00
|
|
|
import EmailsSection from '../../js/features/settings/components/emails-section'
|
|
|
|
import useFetchMock from './../hooks/use-fetch-mock'
|
|
|
|
import {
|
|
|
|
setDefaultMeta,
|
2022-05-31 08:06:28 -04:00
|
|
|
setReconfirmationMeta,
|
2022-04-22 09:49:26 -04:00
|
|
|
defaultSetupMocks,
|
2022-05-31 08:06:28 -04:00
|
|
|
reconfirmationSetupMocks,
|
2022-04-22 09:49:26 -04:00
|
|
|
errorsMocks,
|
|
|
|
} from './helpers/emails'
|
|
|
|
|
|
|
|
export const EmailsList = args => {
|
|
|
|
useFetchMock(defaultSetupMocks)
|
|
|
|
setDefaultMeta()
|
|
|
|
|
|
|
|
return <EmailsSection {...args} />
|
|
|
|
}
|
|
|
|
|
2022-05-31 08:06:28 -04:00
|
|
|
export const ReconfirmationEmailsList = args => {
|
|
|
|
useFetchMock(reconfirmationSetupMocks)
|
|
|
|
setReconfirmationMeta()
|
|
|
|
|
|
|
|
return <EmailsSection {...args} />
|
|
|
|
}
|
|
|
|
|
2022-04-22 09:49:26 -04:00
|
|
|
export const NetworkErrors = args => {
|
|
|
|
useFetchMock(errorsMocks)
|
|
|
|
setDefaultMeta()
|
|
|
|
|
|
|
|
return <EmailsSection {...args} />
|
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Account Settings / Emails and Affiliations',
|
|
|
|
component: EmailsSection,
|
|
|
|
}
|