mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2025-07-27 17:00:06 +02:00

* Remove the Bootstrap 5 version utilities * Remove Account settings LESS stylesheet and unused styles * Prefer using the OLFormText wrapper component instead of FormText * Remove the Bootstrap 3 version stories * Replace Font Awesome icons to Material icons * Fix the heading hierarchy * Cleanup unused translation * Restore ellipsis to the text of two loading spinners * Add loading button tests back and add some button loading labels --------- Co-authored-by: Tim Down <158919+timdown@users.noreply.github.com> GitOrigin-RevId: 283a9167c8c78bf0fe5062840ded6917dcd6263b
21 lines
655 B
TypeScript
21 lines
655 B
TypeScript
import EmailsSection from '../../js/features/settings/components/emails-section'
|
|
import { UserEmailsProvider } from '../../js/features/settings/context/user-email-context'
|
|
import { LeaversSurveyAlert } from '../../js/features/settings/components/leavers-survey-alert'
|
|
import localStorage from '@/infrastructure/local-storage'
|
|
|
|
export const SurveyAlert = () => {
|
|
localStorage.setItem(
|
|
'showInstitutionalLeaversSurveyUntil',
|
|
Date.now() + 1000 * 60 * 60
|
|
)
|
|
return (
|
|
<UserEmailsProvider>
|
|
<LeaversSurveyAlert />
|
|
</UserEmailsProvider>
|
|
)
|
|
}
|
|
|
|
export default {
|
|
title: 'Account Settings / Survey Alerts',
|
|
component: EmailsSection,
|
|
}
|