[FeaturedBrandsPanel] API 구조 변경에 따른 panel 작업
Detail Notes : 1. featuredBrandsSlice.js → brandSlice.js 이름 변경 2. FeaturedBrandsPanel.jsx, QuickMenu.jsx, Banner.jsx 구조 변경 및 css 수정 3. 사용하지 않는 api/featuredBrands.js 파일 삭제
This commit is contained in:
@@ -4,13 +4,17 @@ import { useDispatch } from "react-redux";
|
||||
|
||||
import ThemeDecorator from "@enact/sandstone/ThemeDecorator";
|
||||
|
||||
import { getBrandList } from "../features/brand/featuredBrandsSlice";
|
||||
import {
|
||||
getBrandLayoutInfo,
|
||||
getBrandList,
|
||||
getBrandLiveChannelInfo,
|
||||
} from "../features/brand/brandsSlice";
|
||||
import { getAuthenticationCode } from "../features/device/deviceSlice";
|
||||
import { getHomeMenu } from "../features/home/homeSlice";
|
||||
import { getMyRecommandedKeyword } from "../features/mypage/myPageSlice";
|
||||
import { getOnSaleInfo } from "../features/onSale/onSaleSlice";
|
||||
import MainView from "../views/MainView/MainView";
|
||||
import css from "./App.module.less";
|
||||
import { getMyRecommandedKeyword } from "../features/mypage/myPageSlice";
|
||||
|
||||
function AppBase(props) {
|
||||
const dispatch = useDispatch();
|
||||
@@ -21,6 +25,10 @@ function AppBase(props) {
|
||||
dispatch(getOnSaleInfo({ categoryIncFlag: "Y", lgCatCd: "" }));
|
||||
dispatch(getBrandList());
|
||||
dispatch(getMyRecommandedKeyword());
|
||||
|
||||
// @@pyh Todo, patnrId를 GNB에서 받는 로직이 만들어진 뒤 FeaturedBrandsPanel로 이동
|
||||
dispatch(getBrandLayoutInfo({ patnrId: "1" }));
|
||||
dispatch(getBrandLiveChannelInfo({ patnrId: "1" }));
|
||||
}, [dispatch]);
|
||||
|
||||
return <MainView />;
|
||||
|
||||
Reference in New Issue
Block a user