[지라 이슈 없음] For code convention
Changed files: 1. Favorites.jsx
This commit is contained in:
@@ -6,6 +6,7 @@ import Spotlight from "@enact/spotlight";
|
||||
import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
|
||||
import { setContainerLastFocusedElement } from "@enact/spotlight/src/container";
|
||||
|
||||
import { sendLogMyPageMyDelete } from "../../../../actions/logActions";
|
||||
import {
|
||||
clearFavorites,
|
||||
deleteMyFavorite,
|
||||
@@ -27,15 +28,18 @@ import { $L } from "../../../../utils/helperMethods";
|
||||
import { SpotlightIds } from "../../../../utils/SpotlightIds";
|
||||
import MyPageItemCard, { SIZES } from "../../MyPageItemCard/MyPageItemCard";
|
||||
import css from "../Favorites/Favorites.module.less";
|
||||
import { sendLogMyPageMyDelete } from "../../../../actions/logActions";
|
||||
|
||||
const HeaderButtonContainer = SpotlightContainerDecorator("div");
|
||||
const ContainerBasic = SpotlightContainerDecorator({ enterTo: null }, "div");
|
||||
export default function Favorites({ title, panelInfo, isOnTop }) {
|
||||
const dispatch = useDispatch();
|
||||
|
||||
const favoritesDatas = useSelector((state) => state.myPage.favoriteData.favorites);
|
||||
const showLoadingPanel = useSelector((state) => state.common.appStatus.showLoadingPanel);
|
||||
const favoritesDatas = useSelector(
|
||||
(state) => state.myPage.favoriteData.favorites
|
||||
);
|
||||
const showLoadingPanel = useSelector(
|
||||
(state) => state.common.appStatus.showLoadingPanel
|
||||
);
|
||||
const [activeDelete, setActiveDelete] = useState(false);
|
||||
const [selectedItems, setSelectedItems] = useState({});
|
||||
const [selectAll, setSelectAll] = useState(false);
|
||||
@@ -134,9 +138,11 @@ export default function Favorites({ title, panelInfo, isOnTop }) {
|
||||
|
||||
if (productList.length > 0 || showList.length > 0) {
|
||||
dispatch(deleteMyFavorite({ productList, showList }));
|
||||
dispatch(sendLogMyPageMyDelete({
|
||||
cnt: `${productList.length + showList.length}`,
|
||||
}));
|
||||
dispatch(
|
||||
sendLogMyPageMyDelete({
|
||||
cnt: `${productList.length + showList.length}`,
|
||||
})
|
||||
);
|
||||
}
|
||||
}
|
||||
setActiveDelete((prev) => !prev);
|
||||
|
||||
Reference in New Issue
Block a user