[지라 이슈 없음] FavoriteBtn.jsx, SingleOption.jsx, js/ts import 처리 (compare)

This commit is contained in:
younghoon100.park
2024-09-30 17:22:38 +09:00
parent 7e859c0320
commit de83cad210
2 changed files with 37 additions and 54 deletions

View File

@@ -4,53 +4,45 @@ import React, {
useMemo, useMemo,
useRef, useRef,
useState, useState,
} from 'react'; } from "react";
import classNames from 'classnames'; import classNames from "classnames";
import { import { useDispatch, useSelector } from "react-redux";
useDispatch,
useSelector,
} from 'react-redux';
import { log } from '@enact/core/handle'; import { log } from "@enact/core/handle";
import Spotlight from '@enact/spotlight'; import Spotlight from "@enact/spotlight";
import SpotlightContainerDecorator import SpotlightContainerDecorator from "@enact/spotlight/SpotlightContainerDecorator";
from '@enact/spotlight/SpotlightContainerDecorator'; import Spottable from "@enact/spotlight/Spottable";
import Spottable from '@enact/spotlight/Spottable';
import { getMyInfoCheckoutInfo } from '../../../actions/checkoutActions'; import { getMyInfoCheckoutInfo } from "../../../actions/checkoutActions";
import { import {
launchMembershipApp, launchMembershipApp,
setHidePopup, setHidePopup,
setShowPopup, setShowPopup,
} from '../../../actions/commonActions'; } from "../../../actions/commonActions";
import { import {
getProductCouponDownload, getProductCouponDownload,
getProductCouponSearch, getProductCouponSearch,
getProductCouponTotDownload, getProductCouponTotDownload,
} from '../../../actions/couponActions'; } from "../../../actions/couponActions";
import { sendLogPaymentEntry } from '../../../actions/logActions'; import { sendLogPaymentEntry } from "../../../actions/logActions";
import { pushPanel } from '../../../actions/panelActions'; import { pushPanel } from "../../../actions/panelActions";
import { import {
getProductOption, getProductOption,
getProductOptionId, getProductOptionId,
} from '../../../actions/productActions'; } from "../../../actions/productActions";
import TButton from '../../../components/TButton/TButton'; import TButton from "../../../components/TButton/TButton";
import TPopUp from '../../../components/TPopUp/TPopUp'; import TPopUp from "../../../components/TPopUp/TPopUp";
import TQRCode from '../../../components/TQRCode/TQRCode'; import TQRCode from "../../../components/TQRCode/TQRCode";
import TScroller from '../../../components/TScroller/TScroller'; import TScroller from "../../../components/TScroller/TScroller";
import TVirtualGridList import TVirtualGridList from "../../../components/TVirtualGridList/TVirtualGridList";
from '../../../components/TVirtualGridList/TVirtualGridList'; import usePriceInfo from "../../../hooks/usePriceInfo";
import usePriceInfo from '../../../hooks/usePriceInfo'; import * as Config from "../../../utils/Config";
import * as Config from '../../../utils/Config'; import { $L, getQRCodeUrl } from "../../../utils/helperMethods";
import { import { SpotlightIds } from "../../../utils/SpotlightIds";
$L, import FavoriteBtn from "../components/FavoriteBtn";
getQRCodeUrl, import BillingProductPrice from "./BillingProductPrice/BillingProductPrice";
} from '../../../utils/helperMethods'; import css from "./SingleOption.module.less";
import { SpotlightIds } from '../../../utils/SpotlightIds';
import FavoriteBtn from '../components/FavoriteBtn';
import BillingProductPrice from './BillingProductPrice/BillingProductPrice';
import css from './SingleOption.module.less';
const Container = SpotlightContainerDecorator( const Container = SpotlightContainerDecorator(
{ enterTo: "default-element" }, { enterTo: "default-element" },

View File

@@ -1,30 +1,21 @@
import React, { import React, { useCallback, useEffect } from "react";
useCallback,
useEffect,
} from 'react';
import classNames from 'classnames'; import classNames from "classnames";
import { import { useDispatch, useSelector } from "react-redux";
useDispatch,
useSelector,
} from 'react-redux';
import Spotlight from '@enact/spotlight'; import Spotlight from "@enact/spotlight";
import { import { setHidePopup, setShowPopup } from "../../../actions/commonActions";
setHidePopup,
setShowPopup,
} from '../../../actions/commonActions';
import { import {
getMyFavoriteFlag, getMyFavoriteFlag,
setMainLikeCategory, setMainLikeCategory,
} from '../../../actions/mainActions'; } from "../../../actions/mainActions";
import { deleteMyFavorite } from '../../../actions/myPageActions'; import { deleteMyFavorite } from "../../../actions/myPageActions";
import TButton from '../../../components/TButton/TButton'; import TButton from "../../../components/TButton/TButton";
import TPopUp from '../../../components/TPopUp/TPopUp'; import TPopUp from "../../../components/TPopUp/TPopUp";
import * as Config from '../../../utils/Config'; import * as Config from "../../../utils/Config";
import { $L } from '../../../utils/helperMethods'; import { $L } from "../../../utils/helperMethods";
import css from './FavoriteBtn.module.less'; import css from "./FavoriteBtn.module.less";
export default function FavoriteBtn({ selectedPatnrId, selectedPrdtId }) { export default function FavoriteBtn({ selectedPatnrId, selectedPrdtId }) {
const dispatch = useDispatch(); const dispatch = useDispatch();