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

View File

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