Skip to content

Commit

Permalink
global.d.ts file updated
Browse files Browse the repository at this point in the history
  • Loading branch information
F-Shahali committed Jul 22, 2024
1 parent 16d41f0 commit d912bb0
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
9 changes: 0 additions & 9 deletions src/App/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,8 @@ import '@assets/scss/base/RSuite.scss';
import '@assets/scss/App.scss';
import '@assets/scss/base/tailwind.scss';
import RoutesRenderer from './Routes/RouteRenderer';
import { useEffect } from 'react';
import { isDev } from '../Tools/Utils/React';

const App = () => {
//? ------------------------------ useEffects ------------------------------------------------------

useEffect(() => {
isDev && (window.logs = true);
}, []);

// -------------------------------------------------------------------------------------------------
return <RoutesRenderer />;
};

Expand Down
2 changes: 0 additions & 2 deletions src/global.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
interface Window {
logs?: boolean;
user_token?: string;
CONFIG?: OBJECT;
MODE?: 'PRODUCTION' | 'DEVELOPMENT' | 'LOCAL';
}
Expand Down

0 comments on commit d912bb0

Please sign in to comment.