Fix #322 UseDevToolsDetection import error solving

This commit is contained in:
karthikalakshmi 2026-03-30 10:41:16 +05:30
parent 5625b00818
commit 03010314c5
1 changed files with 1 additions and 22 deletions

View File

@ -26,7 +26,6 @@ import useSubscriptionManager from './useSubscriptionManager.js';
import useSessionManager from './useSessionManager.js';
import ExtendSubscriptionModal from './Pages/ExtentedModal/ExtendSubscriptionModal.jsx';
import devtools from 'devtools-detect';
import { useDevToolsDetection } from './utils/useDevToolsDetection.js';
import { Capacitor } from '@capacitor/core';
// const isCapacitor = () => !!window.Capacitor?.isNativePlatform?.();
@ -201,27 +200,7 @@ const AppRoutes = () => {
// return () => clearInterval(checkDevTools);
// }, [devToolsOpen]);
// const isBlocked = useDevToolsDetection(() => {
// // optional: log, notify, etc.
// console.warn('DevTools detected');
// });
// if (isBlocked) {
// return (
// <div style={{
// display: 'flex',
// justifyContent: 'center',
// alignItems: 'center',
// height: '100vh',
// flexDirection: 'column',
// gap: '1rem'
// }}>
// <h1 style={{ color: 'red' }}>
// DevTools detected. Please close it to continue.
// </h1>
// </div>
// );
// }
if (extendModel) {
return (
<ExtendSubscriptionModal