Merge pull request #20983 from overleaf/jdt-wf-auto-account-create
Auto create Writefull accounts GitOrigin-RevId: 2b03cd5bc1392c43d7682833d80f840b4da314f2
This commit is contained in:
committed by
Copybot
parent
4920af44b0
commit
e5ead5b42c
@@ -20,8 +20,6 @@ import { saveProjectSettings } from '@/features/editor-left-menu/utils/api'
|
||||
import { PermissionsLevel } from '@/features/ide-react/types/permissions'
|
||||
import { useModalsContext } from '@/features/ide-react/context/modals-context'
|
||||
|
||||
type writefullAdButtons = '' | 'try-it' | 'log-in'
|
||||
|
||||
export const EditorContext = createContext<
|
||||
| {
|
||||
cobranding?: {
|
||||
@@ -50,8 +48,6 @@ export const EditorContext = createContext<
|
||||
inactiveTutorials: string[]
|
||||
currentPopup: string | null
|
||||
setCurrentPopup: Dispatch<SetStateAction<string | null>>
|
||||
writefullAdClicked: writefullAdButtons
|
||||
setWritefullAdClicked: Dispatch<SetStateAction<writefullAdButtons>>
|
||||
setOutOfSync: (value: boolean) => void
|
||||
}
|
||||
| undefined
|
||||
@@ -94,9 +90,6 @@ export const EditorProvider: FC = ({ children }) => {
|
||||
() => getMeta('ol-inactiveTutorials') || []
|
||||
)
|
||||
|
||||
const [writefullAdClicked, setWritefullAdClicked] =
|
||||
useState<writefullAdButtons>('')
|
||||
|
||||
const [currentPopup, setCurrentPopup] = useState<string | null>(null)
|
||||
|
||||
const isPendingEditor = useMemo(
|
||||
@@ -189,8 +182,6 @@ export const EditorProvider: FC = ({ children }) => {
|
||||
deactivateTutorial,
|
||||
currentPopup,
|
||||
setCurrentPopup,
|
||||
writefullAdClicked,
|
||||
setWritefullAdClicked,
|
||||
setOutOfSync,
|
||||
}),
|
||||
[
|
||||
@@ -210,8 +201,6 @@ export const EditorProvider: FC = ({ children }) => {
|
||||
deactivateTutorial,
|
||||
currentPopup,
|
||||
setCurrentPopup,
|
||||
writefullAdClicked,
|
||||
setWritefullAdClicked,
|
||||
outOfSync,
|
||||
setOutOfSync,
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user