mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-12 11:44:01 -05:00
666c2c3b47
[SettingsPage] Add Reconfirmation Prompt GitOrigin-RevId: 2e03ba7f459b32faf6d66f21ba692ca54f62a320
35 lines
794 B
JavaScript
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,
|
|
}
|