mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
9daa8f5d98
[web] rename all the JSX files to .jsx/.tsx GitOrigin-RevId: 82056ae47e017523722cf258dcc83c8a925a28f7
43 lines
955 B
JavaScript
43 lines
955 B
JavaScript
import EmailsSection from '../../js/features/settings/components/emails-section'
|
|
import useFetchMock from './../hooks/use-fetch-mock'
|
|
import {
|
|
setDefaultMeta,
|
|
setReconfirmationMeta,
|
|
defaultSetupMocks,
|
|
reconfirmationSetupMocks,
|
|
errorsMocks,
|
|
emailLimitSetupMocks,
|
|
} from './helpers/emails'
|
|
|
|
export const EmailsList = args => {
|
|
useFetchMock(defaultSetupMocks)
|
|
setDefaultMeta()
|
|
|
|
return <EmailsSection {...args} />
|
|
}
|
|
|
|
export const EmailLimitList = args => {
|
|
useFetchMock(emailLimitSetupMocks)
|
|
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,
|
|
}
|