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);