Files
shoptime/com.twin.app.shoptime/src/App/App.js
junghoon86.park e173f9f32f MainSlice적용
getSubCategory작업 관련하여 적용 및 오타수정.
2024-01-29 09:52:46 +09:00

43 lines
1.2 KiB
JavaScript

import React, { useEffect } from "react";
import { useDispatch } from "react-redux";
import ThemeDecorator from "@enact/sandstone/ThemeDecorator";
import { getBrandList } 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 { getSubCategory } from "../features/main/mainSlice";
import MainView from "../views/MainView/MainView";
import css from "./App.module.less";
function AppBase(props) {
const dispatch = useDispatch();
useEffect(() => {
dispatch(getAuthenticationCode());
dispatch(getHomeMenu());
dispatch(getOnSaleInfo({ categoryIncFlag: "Y", lgCatCd: "" }));
dispatch(getBrandList());
dispatch(getMyRecommandedKeyword());
dispatch(
getSubCategory({
lgCatCd: "1000",
patnrIdList: "",
pageSize: "",
tabType: "",
filterType: "",
})
);
}, [dispatch]);
return <MainView />;
}
const App = ThemeDecorator({ noAutoFocus: true }, AppBase);
export default App;
export { App, AppBase };