[SHOPTIME-2988] 로딩 삭제(원복)
This commit is contained in:
@@ -73,12 +73,6 @@ export default function RandomUnit({
|
||||
const bannerDataRef = useRef(bannerData);
|
||||
const randomDataRef = useRef(bannerDetailInfos[randomNumber]);
|
||||
|
||||
const loadingComplete = useSelector((state) => state.common?.loadingComplete);
|
||||
|
||||
const { showLoadingPanel, isLoading } = useSelector(
|
||||
(state) => state.common.appStatus
|
||||
);
|
||||
|
||||
const topContentsLogInfo = useMemo(() => {
|
||||
if (randomDataRef.current) {
|
||||
const currentRandomData = randomDataRef.current;
|
||||
@@ -163,7 +157,6 @@ export default function RandomUnit({
|
||||
clearTimeout(timerRef.current);
|
||||
|
||||
dispatch(finishVideoPreview());
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
}, [isFocused]);
|
||||
|
||||
// DSP00501 : Featured Brands
|
||||
@@ -333,8 +326,6 @@ export default function RandomUnit({
|
||||
})
|
||||
);
|
||||
|
||||
dispatch(finishVideoPreview());
|
||||
|
||||
dispatch(
|
||||
sendLogTopContents({
|
||||
...topContentsLogInfo,
|
||||
@@ -395,14 +386,6 @@ export default function RandomUnit({
|
||||
if (bannerData) {
|
||||
setRandomData(bannerDetailInfos[randomNumber]);
|
||||
}
|
||||
|
||||
dispatch(
|
||||
changeAppStatus({ showLoadingPanel: { show: true, type: "wait" } })
|
||||
);
|
||||
|
||||
setTimeout(() => {
|
||||
dispatch(changeAppStatus({ showLoadingPanel: { show: false } }));
|
||||
}, 0);
|
||||
}, [bannerData, dispatch]);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -489,8 +472,8 @@ export default function RandomUnit({
|
||||
/>
|
||||
</div>
|
||||
</SpottableComponent>
|
||||
) : (!isLoading && randomData?.shptmBanrTpNm == "LIVE") ||
|
||||
(!isLoading && randomData?.shptmBanrTpNm == "VOD") ? (
|
||||
) : randomData?.shptmBanrTpNm == "LIVE" ||
|
||||
randomData?.shptmBanrTpNm == "VOD" ? (
|
||||
<SpottableComponent
|
||||
className={classNames(
|
||||
css.itemBox,
|
||||
|
||||
Reference in New Issue
Block a user