[HomePanel] 로직 변경

This commit is contained in:
sungmin.in
2024-02-06 21:52:20 +09:00
parent 8111f298be
commit cc9201eb17
7 changed files with 3 additions and 14 deletions

View File

@@ -10,7 +10,6 @@ import {
useSelector, useSelector,
} from 'react-redux'; } from 'react-redux';
import { Job } from '@enact/core/util';
import Marquee from '@enact/sandstone/Marquee'; import Marquee from '@enact/sandstone/Marquee';
import Spotlight from '@enact/spotlight'; import Spotlight from '@enact/spotlight';
import { import {

View File

@@ -10,7 +10,6 @@ import {
useSelector, useSelector,
} from 'react-redux'; } from 'react-redux';
import { Job } from '@enact/core/util';
import Marquee from '@enact/sandstone/Marquee'; import Marquee from '@enact/sandstone/Marquee';
import Spotlight from '@enact/spotlight'; import Spotlight from '@enact/spotlight';
import { import {

View File

@@ -10,7 +10,6 @@ import {
useSelector, useSelector,
} from 'react-redux'; } from 'react-redux';
import { Job } from '@enact/core/util';
import Marquee from '@enact/sandstone/Marquee'; import Marquee from '@enact/sandstone/Marquee';
import Spotlight from '@enact/spotlight'; import Spotlight from '@enact/spotlight';
import { import {

View File

@@ -16,7 +16,7 @@ export default function RandomUnit({ bannerData, imageType }) {
setRandomData(bannerDetailInfos[num]); setRandomData(bannerDetailInfos[num]);
} }
}, [bannerData]); }, [bannerData]);
// 추후 변경
return ( return (
<> <>
{randomData.shptmBanrTpNm == "Image Banner" ? ( {randomData.shptmBanrTpNm == "Image Banner" ? (

View File

@@ -1,13 +1,9 @@
import React, { import React, {
memo,
useCallback, useCallback,
useEffect, useEffect,
useRef,
useState,
} from 'react'; } from 'react';
import VideoPlay from '@enact/sandstone/VideoPlayer'; import VideoPlay from '@enact/sandstone/VideoPlayer';
import VideoPlayer from '@enact/sandstone/VideoPlayer';
import { VirtualGridList } from '@enact/sandstone/VirtualList'; import { VirtualGridList } from '@enact/sandstone/VirtualList';
import ri from '@enact/ui/resolution'; import ri from '@enact/ui/resolution';

View File

@@ -39,7 +39,7 @@ export default function HomePanel() {
); );
const [select, setSelect] = useState(null); const [select, setSelect] = useState(null);
const [homeLayoutInfoDetail, setHomeLayoutInfoDetail] = useState([]); const [homeLayoutInfoDetail, setHomeLayoutInfoDetail] = useState([]);
// 추후 스위치 select 로 변경 : 스팟라이트 테스트 중 // 추후 변경
const selectSwitch = (index) => { const selectSwitch = (index) => {
switch ("DSP00203") { switch ("DSP00203") {
case "DSP00201": case "DSP00201":

View File

@@ -1,8 +1,4 @@
import React, { import React, { useCallback } from 'react';
useCallback,
useEffect,
useState,
} from 'react';
import classNames from 'classnames'; import classNames from 'classnames';