[JustForYou] 저스트 포유 테스트
1. Config 파일에 저스트포유테스트 추가. 2. THeaderCustom부분에 kind 추가하여 없을경우 로고 나오지 않도록 처리. 3. 저스트 포유배너에서 링크 테스트로 갈수있도록 변경. 4. 테스트 파일 추가. Jsx,less파일 Etc) 서브카테고리에 들어있는 console 제거.
This commit is contained in:
@@ -191,7 +191,9 @@ export default function HomeBanner({
|
||||
const termsLoading = useSelector((state) => state.common.termsLoading);
|
||||
const isGnbOpened = useSelector((state) => state.common.isGnbOpened);
|
||||
// 선택약관 동의여부
|
||||
const introTermsAgree = useSelector((state) => state.common.introTermsAgree);
|
||||
const introTermsAgree = useSelector(
|
||||
(state) => state.common.termsFlag.optionalTerms
|
||||
);
|
||||
|
||||
// 새로운 Redux 상태: 선택약관 팝업 플로우 관리
|
||||
const optionalTermsPopupFlow = useSelector(
|
||||
@@ -314,11 +316,13 @@ export default function HomeBanner({
|
||||
dispatch(updateOptionalTermsAgreement(true));
|
||||
// 로컬 상태도 업데이트 (기존 로직 유지)
|
||||
setOptionalTermsAgreed(true);
|
||||
console.log("###test pjh ___ 2");
|
||||
} else {
|
||||
if (process.env.NODE_ENV === "development") {
|
||||
console.error("[HomeBanner] 약관 동의 실패:", response);
|
||||
}
|
||||
}
|
||||
console.log("###test pjh ___ 1", introTermsAgree);
|
||||
};
|
||||
|
||||
if (process.env.NODE_ENV === "development") {
|
||||
@@ -651,6 +655,10 @@ export default function HomeBanner({
|
||||
[_handleShelfFocus]
|
||||
);
|
||||
|
||||
useEffect(() => {
|
||||
console.log("####introTermsAgree", introTermsAgree);
|
||||
}, [introTermsAgree]);
|
||||
|
||||
const renderLayout = useCallback(() => {
|
||||
switch (selectTemplate) {
|
||||
case "DSP00201": {
|
||||
@@ -662,7 +670,7 @@ export default function HomeBanner({
|
||||
</ContainerBasic>
|
||||
{renderItem(2, false)}
|
||||
{/* //NOTE - 약관 동의 여부 & 추후 API 따라 팝업 표시 여부 결정 */}
|
||||
{introTermsAgree ? (
|
||||
{introTermsAgree === "Y" ? (
|
||||
<div className={css.imgBox}>
|
||||
<JustForSwitchBanner
|
||||
renderItem={renderItem}
|
||||
|
||||
Reference in New Issue
Block a user