From 77fa5cf7840221caa2e4bf46ec6d2e7e0b73db28 Mon Sep 17 00:00:00 2001 From: roo hutton Date: Wed, 5 Feb 2025 08:49:36 +0000 Subject: [PATCH] Merge pull request #23359 from overleaf/rh-roles-e2e-fix Fix cross-module import in compile timeout paywall GitOrigin-RevId: a54226c8bef65e0483a3eee614f0ab54f5828c97 --- .../timeout-upgrade-paywall-prompt.tsx | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-paywall-prompt.tsx b/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-paywall-prompt.tsx index f2825494f5..c89e9e2f3b 100644 --- a/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-paywall-prompt.tsx +++ b/services/web/frontend/js/features/pdf-preview/components/timeout-upgrade-paywall-prompt.tsx @@ -1,16 +1,16 @@ import getMeta from '@/utils/meta' -import { - studentRoles, - StudentRole, -} from '../../../../../modules/onboarding/frontend/js/components/data/roles' import { useMemo } from 'react' +const studentRoles = [ + 'High-school student', + 'Undergraduate student', + "Master's student (e.g. MSc, MA)", + 'Doctoral student (e.g. PhD, MD, EngD)', +] + function TimeoutUpgradePaywallPrompt() { const odcRole = getMeta('ol-odcRole') - const isStudent = useMemo( - () => studentRoles.includes(odcRole as StudentRole), - [odcRole] - ) + const isStudent = useMemo(() => studentRoles.includes(odcRole), [odcRole]) return (