[지라이슈없음] network status check (develop progress test 1)
This commit is contained in:
@@ -19,6 +19,7 @@ import {
|
||||
changeAppStatus,
|
||||
checkFirstLaunch,
|
||||
deleteOldDb8Datas,
|
||||
getConnectionStatus,
|
||||
getDeviceId,
|
||||
getHttpHeaderForServiceRequest,
|
||||
getSystemSettings,
|
||||
@@ -133,14 +134,9 @@ function AppBase(props) {
|
||||
const oldDb8Deleted = useSelector(
|
||||
(state) => state.localSettings.oldDb8Deleted
|
||||
);
|
||||
const isInternetConnected = useSelector(
|
||||
(state) => state.common.appStatus.isInternetConnected
|
||||
);
|
||||
|
||||
const deviceCountryCode = httpHeader?.["X-Device-Country"] || "";
|
||||
|
||||
useEffect(() => {});
|
||||
|
||||
useEffect(() => {
|
||||
if (!cursorVisible && !Spotlight.getCurrent()) {
|
||||
Spotlight.focus();
|
||||
@@ -275,6 +271,7 @@ function AppBase(props) {
|
||||
lunaTest(service, method, subscribe, parameters);
|
||||
}
|
||||
|
||||
dispatch(getConnectionStatus());
|
||||
dispatch(getDeviceId());
|
||||
dispatch(getHttpHeaderForServiceRequest());
|
||||
dispatch(getSystemSettings());
|
||||
|
||||
@@ -153,6 +153,10 @@ export default function MainView({ className }) {
|
||||
const skipEndOfServicePopup = useSelector(
|
||||
(state) => state.localSettings.skipEndOfServicePopup
|
||||
);
|
||||
const isInternetConnected = useSelector(
|
||||
(state) => state.common.appStatus.isInternetConnected
|
||||
);
|
||||
|
||||
const deviceCountryCode = httpHeader?.["X-Device-Country"] || "";
|
||||
|
||||
const isLogSentRef = useRef(false);
|
||||
@@ -629,6 +633,12 @@ export default function MainView({ className }) {
|
||||
}
|
||||
}, [dispatch, popupData]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!isInternetConnected) {
|
||||
// TODO
|
||||
}
|
||||
}, [isInternetConnected]);
|
||||
|
||||
return (
|
||||
<div
|
||||
className={classNames(css.mainViewWrap, className)}
|
||||
|
||||
Reference in New Issue
Block a user