overleaf/services/web/frontend/stories/settings/leavers-survey-alert.stories.tsx
Timothée Alby 7c243c6c50 Merge pull request #7975 from overleaf/ta-settings-fixes-6
[SettingsPage] Small Fixes 6

GitOrigin-RevId: 19ad9a195a401909ac3dcc2be79d380cb61078da
2022-05-19 08:03:54 +00:00

16 lines
508 B
TypeScript

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