New source found from dndbeyond.com
This commit is contained in:
+4
-6
@@ -86,8 +86,7 @@ function useSizes(step, scrollOptions = {
|
||||
if (!isInView && target) {
|
||||
setTransition(true);
|
||||
smoothScroll(target, scrollOptions).then(() => {
|
||||
if (!observing)
|
||||
setRefresher(Date.now());
|
||||
if (!observing) setRefresher(Date.now());
|
||||
}).finally(() => {
|
||||
setTransition(false);
|
||||
});
|
||||
@@ -506,8 +505,7 @@ var Navigation = ({
|
||||
disabled: disableDots || disableAll
|
||||
}),
|
||||
onClick: () => {
|
||||
if (!disableDots && !disableAll)
|
||||
setCurrentStep(index);
|
||||
if (!disableDots && !disableAll) setCurrentStep(index);
|
||||
},
|
||||
key: `navigation_dot_${index}`,
|
||||
"aria-label": ((_a = steps[index]) == null ? void 0 : _a.navDotAriaLabel) || `Go to step ${index + 1}`
|
||||
@@ -966,13 +964,13 @@ function withTour(WrappedComponent) {
|
||||
}
|
||||
|
||||
// index.tsx
|
||||
var tour_default = Tour_default;
|
||||
var index_default = Tour_default;
|
||||
export {
|
||||
Tour_default as Tour,
|
||||
Context_default as TourContext,
|
||||
TourProvider,
|
||||
components,
|
||||
tour_default as default,
|
||||
index_default as default,
|
||||
useTour,
|
||||
withTour
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user