2022-05-16 04:03:42 -04:00
|
|
|
import EmailsSection from '../../js/features/settings/components/emails-section'
|
2022-05-24 03:47:08 -04:00
|
|
|
import { UserEmailsProvider } from '../../js/features/settings/context/user-email-context'
|
2022-05-16 04:03:42 -04:00
|
|
|
import { LeaversSurveyAlert } from '../../js/features/settings/components/leavers-survey-alert'
|
2022-05-18 09:45:31 -04:00
|
|
|
import localStorage from '../../js/infrastructure/local-storage'
|
2022-05-16 04:03:42 -04:00
|
|
|
|
|
|
|
export const SurveyAlert = () => {
|
|
|
|
localStorage.setItem(
|
|
|
|
'showInstitutionalLeaversSurveyUntil',
|
2022-05-18 09:45:31 -04:00
|
|
|
Date.now() + 1000 * 60 * 60
|
2022-05-16 04:03:42 -04:00
|
|
|
)
|
2022-05-24 03:47:08 -04:00
|
|
|
return (
|
|
|
|
<UserEmailsProvider>
|
|
|
|
<LeaversSurveyAlert />
|
|
|
|
</UserEmailsProvider>
|
|
|
|
)
|
2022-05-16 04:03:42 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
export default {
|
|
|
|
title: 'Account Settings / Survey Alerts',
|
|
|
|
component: EmailsSection,
|
|
|
|
}
|