ErrorBoundary devleop branch에서 불필요하여 제거
This commit is contained in:
@@ -1,20 +1,13 @@
|
|||||||
import React, {
|
import React, { useCallback, useEffect, useRef } from "react";
|
||||||
useCallback,
|
|
||||||
useEffect,
|
|
||||||
useRef,
|
|
||||||
} from 'react';
|
|
||||||
|
|
||||||
import {
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
useDispatch,
|
|
||||||
useSelector,
|
|
||||||
} from 'react-redux';
|
|
||||||
|
|
||||||
import platform from '@enact/core/platform';
|
import platform from "@enact/core/platform";
|
||||||
import { Job } from '@enact/core/util';
|
import { Job } from "@enact/core/util";
|
||||||
import ThemeDecorator from '@enact/sandstone/ThemeDecorator';
|
import ThemeDecorator from "@enact/sandstone/ThemeDecorator";
|
||||||
import Spotlight from '@enact/spotlight';
|
import Spotlight from "@enact/spotlight";
|
||||||
|
|
||||||
import appinfo from '../../webos-meta/appinfo.json';
|
import appinfo from "../../webos-meta/appinfo.json";
|
||||||
import {
|
import {
|
||||||
changeAppStatus,
|
changeAppStatus,
|
||||||
checkFirstLaunch,
|
checkFirstLaunch,
|
||||||
@@ -28,34 +21,26 @@ import {
|
|||||||
setDeepLink,
|
setDeepLink,
|
||||||
setGNBMenu,
|
setGNBMenu,
|
||||||
setSecondLayerInfo,
|
setSecondLayerInfo,
|
||||||
} from '../actions/commonActions';
|
} from "../actions/commonActions";
|
||||||
import { getShoptimeTerms } from '../actions/empActions';
|
import { getShoptimeTerms } from "../actions/empActions";
|
||||||
import {
|
import { getHomeMenu, getHomeTerms } from "../actions/homeActions";
|
||||||
getHomeMenu,
|
|
||||||
getHomeTerms,
|
|
||||||
} from '../actions/homeActions';
|
|
||||||
import {
|
import {
|
||||||
getMyRecommandedKeyword,
|
getMyRecommandedKeyword,
|
||||||
getMyUpcomingAlertShow,
|
getMyUpcomingAlertShow,
|
||||||
} from '../actions/myPageActions';
|
} from "../actions/myPageActions";
|
||||||
import { pushPanel } from '../actions/panelActions';
|
import { pushPanel } from "../actions/panelActions";
|
||||||
import NotSupportedVersion
|
import NotSupportedVersion from "../components/NotSupportedVersion/NotSupportedVersion";
|
||||||
from '../components/NotSupportedVersion/NotSupportedVersion';
|
import usePrevious from "../hooks/usePrevious";
|
||||||
import usePrevious from '../hooks/usePrevious';
|
import { lunaTest } from "../lunaSend/lunaTest";
|
||||||
import { lunaTest } from '../lunaSend/lunaTest';
|
import { store } from "../store/store";
|
||||||
import { store } from '../store/store';
|
import * as Config from "../utils/Config";
|
||||||
import * as Config from '../utils/Config';
|
import { $L, clearLaunchParams, getLaunchParams } from "../utils/helperMethods";
|
||||||
import {
|
import { SpotlightIds } from "../utils/SpotlightIds";
|
||||||
$L,
|
import ErrorBoundary from "../views/ErrorBoundary";
|
||||||
clearLaunchParams,
|
import MainView from "../views/MainView/MainView";
|
||||||
getLaunchParams,
|
import css from "./App.module.less";
|
||||||
} from '../utils/helperMethods';
|
import { handleBypassLink } from "./bypassLinkHandler";
|
||||||
import { SpotlightIds } from '../utils/SpotlightIds';
|
import { handleDeepLink } from "./deepLinkHandler";
|
||||||
import ErrorBoundary from '../views/ErrorBoundary';
|
|
||||||
import MainView from '../views/MainView/MainView';
|
|
||||||
import css from './App.module.less';
|
|
||||||
import { handleBypassLink } from './bypassLinkHandler';
|
|
||||||
import { handleDeepLink } from './deepLinkHandler';
|
|
||||||
|
|
||||||
let foreGroundChangeTimer = null;
|
let foreGroundChangeTimer = null;
|
||||||
|
|
||||||
@@ -387,21 +372,21 @@ function AppBase(props) {
|
|||||||
}, [dispatch]);
|
}, [dispatch]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ErrorBoundary>
|
// <ErrorBoundary>
|
||||||
{webOSVersion === "" ? null : Number(webOSVersion) < 4 ? (
|
// {webOSVersion === "" ? null : Number(webOSVersion) < 4 ? (
|
||||||
<NotSupportedVersion />
|
// <NotSupportedVersion />
|
||||||
) : (
|
// ) : (
|
||||||
<MainView
|
<MainView
|
||||||
initService={initService}
|
initService={initService}
|
||||||
className={
|
className={
|
||||||
typeof window === "object" &&
|
typeof window === "object" &&
|
||||||
!window.PalmSystem &&
|
!window.PalmSystem &&
|
||||||
!cursorVisible &&
|
!cursorVisible &&
|
||||||
css.preventMouse
|
css.preventMouse
|
||||||
}
|
}
|
||||||
/>
|
/>
|
||||||
)}
|
// )}
|
||||||
</ErrorBoundary>
|
// </ErrorBoundary>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user