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,
|
2023-05-26 06:56:15 -04:00
|
|
|
emailLimitSetupMocks,
|
2022-04-22 09:49:26 -04:00
|
|
|
} from './helpers/emails'
|
|
|
|
|
|
|
|
export const EmailsList = args => {
|
|
|
|
useFetchMock(defaultSetupMocks)
|
|
|
|
setDefaultMeta()
|
|
|
|
|
|
|
|
return <EmailsSection {...args} />
|
|
|
|
}
|
|
|
|
|
2023-05-26 06:56:15 -04:00
|
|
|
export const EmailLimitList = args => {
|
|
|
|
useFetchMock(emailLimitSetupMocks)
|
|
|
|
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,
|
|
|
|
}
|