[FeaturedBrandsPanel] issue fix, SHOPTIME-1933

This commit is contained in:
younghoon100.park
2024-06-17 18:52:35 +09:00
parent 23a45a410e
commit bac6ea3a2c
3 changed files with 13 additions and 24 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@@ -1,21 +1,15 @@
import React, {
useCallback,
useState,
} from 'react';
import React, { useCallback, useState } from "react";
import classNames from 'classnames';
import compose from 'ramda/src/compose';
import classNames from "classnames";
import compose from "ramda/src/compose";
import Spottable from '@enact/spotlight/Spottable';
import {
Marquee,
MarqueeController,
} from '@enact/ui/Marquee';
import Spottable from "@enact/spotlight/Spottable";
import { Marquee, MarqueeController } from "@enact/ui/Marquee";
import IcProfile from '../../../assets/images/icons/ic-profile@3x.png';
import { $L } from '../../utils/helperMethods';
import CustomImage from '../CustomImage/CustomImage';
import css from './TButton.module.less';
import IcProfile from "../../../assets/images/icons/ic-creator-profile@3x.png";
import { $L } from "../../utils/helperMethods";
import CustomImage from "../CustomImage/CustomImage";
import css from "./TButton.module.less";
const SIZES = {
small: "small",

View File

@@ -4,10 +4,10 @@ import { useDispatch, useSelector } from "react-redux";
import { updatePanel } from "../../../../../actions/panelActions";
import TButton, { TYPES } from "../../../../../components/TButton/TButton";
import useLogService from "../../../../../hooks/useLogService";
import useScrollReset from "../../../../../hooks/useScrollReset";
import { panel_names } from "../../../../../utils/Config";
import css from "./FeaturedCreatorsNavItem.module.less";
import useLogService from "../../../../../hooks/useLogService";
export default function FeaturedCreatorsNavItem({
brandCreatorsInfoItem,
@@ -95,12 +95,7 @@ export default function FeaturedCreatorsNavItem({
if (cursorVisible) {
return;
}
}, [
cursorVisible,
handleItemFocus,
handleScrollReset,
itemIndex
]);
}, [cursorVisible, handleItemFocus, handleScrollReset, itemIndex]);
return (
<li className={css.item}>
@@ -124,8 +119,8 @@ export default function FeaturedCreatorsNavItem({
? panelInfo.hstNm === hstNm
: itemIndex === 0
}
type={TYPES.withAvatar}
withAvatar
type={hostImgPath ? TYPES.withAvatar : TYPES.oneDepthCategory}
withAvatar={hostImgPath}
>
{hstNm}
</TButton>