This commit is contained in:
Ibrahim committed 2024-09-27 15:44:01 -04:00
1 parent ea7a3e07cb
commit 579c0c9d01
5 files changed
+47 -249

No files matched your search

@@ -17,7 +17,7 @@ const markTourAsShown = (tourId: string) => {
}
};
const Onboarding = () => {
const Onboarding = ({ servicesManager }: withAppTypes) => {
const Shepherd = useShepherd();
const location = useLocation();
const tours = window.config.tours as Array<{
@@ -50,7 +50,7 @@ const Onboarding = () => {
}
});
if (!hasTourBeenShown(matchingTour.id)) {
if (true) {
observer.observe(document.body, { childList: true, subtree: true });
setTimeout(() => observer.disconnect(), 5000);
}
@@ -59,6 +59,7 @@ const Onboarding = () => {
startTour();
}
}, [Shepherd, tours, location.pathname]);
return null;
};