[FeaturedBrandsPanel] API 구조 변경에 따른 업데이트

Detail Notes :

1. features/brand/featuredBrnadsSlice.js 생성 및 logic 추가 (store 추가완료)
2. api/apiConfig.js brand-controller URLS 추가

P.S : api/featuredBrandsApi.js 파일은 해당 영역의 panel에서 구조 변경 후 삭제하겠습니다.
This commit is contained in:
younghoon100.park
2024-01-25 20:47:32 +09:00
parent 9c233fc10f
commit c919e0b130
4 changed files with 67 additions and 6 deletions

View File

@@ -1,13 +1,15 @@
import ThemeDecorator from "@enact/sandstone/ThemeDecorator";
import React, { useEffect } from "react";
import css from "./App.module.less";
import MainView from "../views/MainView/MainView";
import { useDispatch } from "react-redux";
import ThemeDecorator from "@enact/sandstone/ThemeDecorator";
import { getBrandList } from "../features/brand/featuredBrandsSlice";
import { getAuthenticationCode } from "../features/device/deviceSlice";
import { getHomeMenu } from "../features/home/homeSlice";
import { getOnSaleInfo } from "../features/onSale/onSaleSlice";
import MainView from "../views/MainView/MainView";
import css from "./App.module.less";
function AppBase(props) {
const dispatch = useDispatch();
@@ -16,6 +18,7 @@ function AppBase(props) {
dispatch(getAuthenticationCode());
dispatch(getHomeMenu());
dispatch(getOnSaleInfo({ categoryIncFlag: "Y", lgCatCd: "" }));
dispatch(getBrandList());
}, [dispatch]);
return <MainView />;