From 6c641bd0b64c26236b9b85402c8ca6737c92ff22 Mon Sep 17 00:00:00 2001 From: Jimmy Domagala-Tang Date: Tue, 13 May 2025 08:12:22 -0400 Subject: [PATCH] Merge pull request #25568 from overleaf/jdt-rely-on-user-feats-for-assist-paywall-button Rely on user features when showing the get assist paywall button post upgrade GitOrigin-RevId: 2218171eb57996ee962b4ddc94c1749ad65b9c1b --- services/web/frontend/js/shared/context/editor-context.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/services/web/frontend/js/shared/context/editor-context.tsx b/services/web/frontend/js/shared/context/editor-context.tsx index a3c01d57dd..7d751ac6ab 100644 --- a/services/web/frontend/js/shared/context/editor-context.tsx +++ b/services/web/frontend/js/shared/context/editor-context.tsx @@ -40,8 +40,6 @@ export const EditorContext = createContext< currentPopup: string | null setCurrentPopup: Dispatch> setOutOfSync: (value: boolean) => void - assistantUpgraded: boolean - setAssistantUpgraded: (value: boolean) => void hasPremiumSuggestion: boolean setHasPremiumSuggestion: (value: boolean) => void setPremiumSuggestionResetDate: (date: Date) => void @@ -89,7 +87,6 @@ export const EditorProvider: FC = ({ children }) => { ) const [currentPopup, setCurrentPopup] = useState(null) - const [assistantUpgraded, setAssistantUpgraded] = useState(false) const [hasPremiumSuggestion, setHasPremiumSuggestion] = useState( () => { return Boolean( @@ -205,8 +202,6 @@ export const EditorProvider: FC = ({ children }) => { setHasPremiumSuggestion, premiumSuggestionResetDate, setPremiumSuggestionResetDate, - assistantUpgraded, - setAssistantUpgraded, writefullInstance, setWritefullInstance, }), @@ -232,8 +227,6 @@ export const EditorProvider: FC = ({ children }) => { setHasPremiumSuggestion, premiumSuggestionResetDate, setPremiumSuggestionResetDate, - assistantUpgraded, - setAssistantUpgraded, writefullInstance, setWritefullInstance, ]