Fix #322 UseDevToolsDetection import error solving
This commit is contained in:
parent
5625b00818
commit
03010314c5
23
src/App.jsx
23
src/App.jsx
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue