Browse Source

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
Jimmy Domagala-Tang 1 year ago
parent
commit
732b365683
1 changed files with 0 additions and 7 deletions
  1. 0 7
      services/web/frontend/js/shared/context/editor-context.tsx

+ 0 - 7
services/web/frontend/js/shared/context/editor-context.tsx

@@ -40,8 +40,6 @@ export const EditorContext = createContext<
       currentPopup: string | null
       setCurrentPopup: Dispatch<SetStateAction<string | null>>
       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<React.PropsWithChildren> = ({ children }) => {
   )
 
   const [currentPopup, setCurrentPopup] = useState<string | null>(null)
-  const [assistantUpgraded, setAssistantUpgraded] = useState(false)
   const [hasPremiumSuggestion, setHasPremiumSuggestion] = useState<boolean>(
     () => {
       return Boolean(
@@ -205,8 +202,6 @@ export const EditorProvider: FC<React.PropsWithChildren> = ({ children }) => {
       setHasPremiumSuggestion,
       premiumSuggestionResetDate,
       setPremiumSuggestionResetDate,
-      assistantUpgraded,
-      setAssistantUpgraded,
       writefullInstance,
       setWritefullInstance,
     }),
@@ -232,8 +227,6 @@ export const EditorProvider: FC<React.PropsWithChildren> = ({ children }) => {
       setHasPremiumSuggestion,
       premiumSuggestionResetDate,
       setPremiumSuggestionResetDate,
-      assistantUpgraded,
-      setAssistantUpgraded,
       writefullInstance,
       setWritefullInstance,
     ]