From 42b52a803aaff5a6a132ce434c2a70310a0b88fa Mon Sep 17 00:00:00 2001 From: "younghoon100.park" Date: Tue, 8 Oct 2024 14:24:19 +0900 Subject: [PATCH] =?UTF-8?q?[=EC=A7=80=EB=9D=BC=20=EC=9D=B4=EC=8A=88=20?= =?UTF-8?q?=EC=97=86=EC=9D=8C]=20For=20code=20convention?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Changed files: 1. Favorites.jsx --- .../MyPageSub/Favorites/Favorites.jsx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/Favorites/Favorites.jsx b/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/Favorites/Favorites.jsx index 0e36490b..9163a212 100644 --- a/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/Favorites/Favorites.jsx +++ b/com.twin.app.shoptime/src/views/MyPagePanel/MyPageSub/Favorites/Favorites.jsx @@ -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);