overleaf/services/web/frontend/stories/settings/leavers-survey-alert.stories.tsx
Timothée Alby cb065e7f12 Merge pull request #7820 from overleaf/msm-settings-leavers-survey
[Settings] Institutional Leavers Survey

GitOrigin-RevId: 1774af7fc4bb90cb39c9fc188323c44a1256bb3d
2022-05-17 08:04:00 +00:00

15 lines
456 B
TypeScript

import EmailsSection from '../../js/features/settings/components/emails-section'
import { LeaversSurveyAlert } from '../../js/features/settings/components/leavers-survey-alert'
export const SurveyAlert = () => {
localStorage.setItem(
'showInstitutionalLeaversSurveyUntil',
(Date.now() + 1000 * 60 * 60).toString()
)
return <LeaversSurveyAlert />
}
export default {
title: 'Account Settings / Survey Alerts',
component: EmailsSection,
}