[FeaturedBrandsPanel] issue fix, SHOPTIME-1933
This commit is contained in:
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
@@ -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",
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user