+
-
-
-
-
{icon}
-
- {title}
+
-
-
+
+
-
-
+
+
+
}
>
{actions}
-
+
+
{children}
- {children}
-
+
);
};
diff --git a/assets/react/v3/shared/components/modals/ModalWrapper.tsx b/assets/react/v3/shared/components/modals/ModalWrapper.tsx
index 55fc40f29..a0fa540a3 100644
--- a/assets/react/v3/shared/components/modals/ModalWrapper.tsx
+++ b/assets/react/v3/shared/components/modals/ModalWrapper.tsx
@@ -7,6 +7,7 @@ import { styleUtils } from '@TutorShared/utils/style-utils';
import { css } from '@emotion/react';
import type React from 'react';
import { useEffect } from 'react';
+import FocusTrap from '../FocusTrap';
interface ModalWrapperProps {
children: React.ReactNode;
@@ -40,56 +41,58 @@ const ModalWrapper = ({
}, []);
return (
-
+
-
-
-
-
{icon}
-
-
- {title}
-
+
+
+
+
+ {icon}
+
+
+ {title}
+
+
+
+
+ {subtitle}
-
- {subtitle}
-
-
-
- {headerChildren}
-
-
-
-
-
- }
- >
- {actions}
-
-
- >
- }
- >
- {entireHeader}
-
+
+ {headerChildren}
+
+
+
+
+
+ }
+ >
+ {actions}
+
+
+ >
+ }
+ >
+ {entireHeader}
+
+
+
{children}
- {children}
-
+
);
};
diff --git a/assets/react/v3/shared/hooks/usePortalPopover.tsx b/assets/react/v3/shared/hooks/usePortalPopover.tsx
index ecddbd6a2..62da30ae9 100644
--- a/assets/react/v3/shared/hooks/usePortalPopover.tsx
+++ b/assets/react/v3/shared/hooks/usePortalPopover.tsx
@@ -2,6 +2,7 @@ import { css } from '@emotion/react';
import { type ReactNode, type RefObject, useEffect, useMemo, useRef, useState } from 'react';
import { createPortal } from 'react-dom';
+import FocusTrap from '@TutorShared/components/FocusTrap';
import { useModal } from '@TutorShared/components/modals/Modal';
import { zIndex } from '@TutorShared/config/styles';
import { AnimatedDiv, AnimationType, useAnimation } from '@TutorShared/hooks/useAnimation';
@@ -223,17 +224,19 @@ export const Portal = ({
if (openState) {
return createPortal(
-
-
{
- event.stopPropagation();
- onClickOutside?.();
- }}
- />
- {children}
-
+
+
+
{
+ event.stopPropagation();
+ onClickOutside?.();
+ }}
+ />
+ {children}
+
+
,
document.body,
);
diff --git a/includes/tutor-general-functions.php b/includes/tutor-general-functions.php
index 78d659571..185a63fa9 100644
--- a/includes/tutor-general-functions.php
+++ b/includes/tutor-general-functions.php
@@ -1451,7 +1451,7 @@ function tutor_get_all_active_payment_gateways() {
$name = $method['name'];
$basename = "tutor-{$name}/tutor-{$name}.php";
$is_plugin_activated = is_plugin_active( $basename );
- if ( ! $is_manual && ! $is_plugin_activated ) {
+ if ( ! $is_manual && 'paypal' !== $name && ! $is_plugin_activated ) {
continue;
}