feat: 메뉴 아이콘 추가 및 관련 컴포넌트 업데이트
- 새로운 메뉴 아이콘 SVG 파일 추가 (31-65, 99번) - constant.ts, favorite-wrapper.tsx, menu/index.tsx, sub-layout 수정 - public/pub 디렉토리 추가 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -32,7 +32,7 @@ export const FavoriteWrapper = ({
|
||||
setMenuOn
|
||||
}: FavoriteWrapperProps) => {
|
||||
const { navigate } = useNavigate();
|
||||
|
||||
|
||||
const [favoriteItems, setFavoriteItems] = useState<Array<UserFavorite>>([]);
|
||||
|
||||
const itemAdd: UserFavorite = {
|
||||
@@ -68,14 +68,14 @@ export const FavoriteWrapper = ({
|
||||
for(let i=0;i<favoriteItems.length;i++){
|
||||
rs.push(
|
||||
<SwiperSlide key={ `favorite-slide-key-${i}` }>
|
||||
<div
|
||||
<div
|
||||
className="swiper-item"
|
||||
onClick={ () => onClickToNavigate(favoriteItems[i]?.programPath) }
|
||||
onClick={ () => onClickToNavigate(favoriteItems[i]?.programPath) }
|
||||
>
|
||||
<div className="swiper-icon coin-icon">
|
||||
<img
|
||||
src={ favoriteItems[i]?.iconFilePath || '' }
|
||||
alt={ favoriteItems[i]?.menuName }
|
||||
<img
|
||||
src={ favoriteItems[i]?.iconFilePath || '' }
|
||||
alt={ favoriteItems[i]?.menuName }
|
||||
/>
|
||||
</div>
|
||||
<span className="swiper-text">{ favoriteItems[i]?.menuName }</span>
|
||||
@@ -112,10 +112,10 @@ export const FavoriteWrapper = ({
|
||||
useEffect(() => {
|
||||
getFavoriteList();
|
||||
}, [changeMenuId]);
|
||||
|
||||
|
||||
return (
|
||||
<>
|
||||
<Swiper
|
||||
<Swiper
|
||||
spaceBetween={ 9 }
|
||||
slidesPerView={ 4 }
|
||||
style={{height: ((usingType === 'home') && (favoriteItems.length < 1))? '0px': '75px'}}
|
||||
|
||||
Reference in New Issue
Block a user