[DetailPanel] TabContainer title background color 변경

This commit is contained in:
고동영
2024-06-03 18:40:13 +09:00
parent 0aa35e88ce
commit 07962dd4c8
2 changed files with 2 additions and 11 deletions

View File

@@ -4,6 +4,7 @@ import Spotlight from "@enact/spotlight";
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
import TButtonTab, {
COLOR_TYPE,
LIST_TYPE,
} from "../../../components/TButtonTab/TButtonTab";
import { $L } from "../../../utils/helperMethods";
@@ -64,6 +65,7 @@ export default function TabContainer({
<TButtonTab
contents={tabList}
className={css.tTab}
colorType={COLOR_TYPE.gray}
onItemClick={handleItemClick}
selectedIndex={tab}
listType={LIST_TYPE.small}

View File

@@ -29,7 +29,6 @@ export default function ShopNowContents({
}) {
const dispatch = useDispatch();
const [height, setHeight] = useState();
const [shopNowIndex, setShopNowIndex] = useState(null);
const gridStyle = useMemo(() => ({ height: `${height}px` }), [height]);
useEffect(() => {
@@ -40,16 +39,6 @@ export default function ShopNowContents({
}
}, [shopNowInfo]);
useEffect(() => {
if (shopNowInfo && panelInfo && panelInfo.prdtId) {
for (let i = 0; i < shopNowInfo.length; i++) {
if (shopNowInfo[i].prdtId === panelInfo.prdtId) {
setShopNowIndex(i);
}
}
}
}, [panelInfo, shopNowInfo]);
const renderItem = useCallback(
({ index, ...rest }) => {
const {