Merge pull request #20233 from overleaf/mj-restore-promo

[web] Add promotion for file/project reverting

GitOrigin-RevId: 9f8e66ab2ad945274576800253d288bca5986562
This commit is contained in:
Mathias Jakobsen
2024-09-09 08:05:01 +00:00
committed by Copybot
parent 8245a95b4e
commit 7d80d22e96
7 changed files with 133 additions and 37 deletions
@@ -81,6 +81,11 @@ export const useTutorial = (
[setCurrentPopup, setShowPopup, tutorialKey, eventData]
)
const hideUntilReload = useCallback(() => {
clearPopup()
deactivateTutorial(tutorialKey)
}, [clearPopup, deactivateTutorial, tutorialKey])
return {
completeTutorial,
dismissTutorial,
@@ -89,6 +94,7 @@ export const useTutorial = (
clearPopup,
clearAndShow,
showPopup,
hideUntilReload,
}
}