@daeryun/dr_components 0.9.29 → 0.9.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -11,6 +11,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
import React, { useEffect, useRef, useState } from 'react';
|
|
12
12
|
import Image from 'next/image';
|
|
13
13
|
import { useMutation } from '@tanstack/react-query';
|
|
14
|
+
import { getCookie } from '../../../lib';
|
|
14
15
|
import ConfirmModal from './LoginComp/Modal/ConfirmModal';
|
|
15
16
|
const Box = ({ type_idx, tag_title, selected, selectedList, setSelectedList, activeTooltipId, setActiveTooltipId, tooltipTimeoutRef }) => {
|
|
16
17
|
const [tooltipStyle, setTooltipStyle] = useState({});
|
|
@@ -475,9 +476,8 @@ const StepTwo = () => {
|
|
|
475
476
|
const modalHandleClose = () => {
|
|
476
477
|
setIsModal(false);
|
|
477
478
|
setModalObj({ title: '', subTitle: '' });
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
// window.location.href = redirect;
|
|
479
|
+
const redirect = decodeURIComponent(getCookie('redirect')) || '/';
|
|
480
|
+
window.location.href = redirect;
|
|
481
481
|
};
|
|
482
482
|
const doneMutation = useMutation({
|
|
483
483
|
mutationFn: (bodyData) => __awaiter(void 0, void 0, void 0, function* () {
|
|
@@ -526,10 +526,8 @@ const StepTwo = () => {
|
|
|
526
526
|
setIsModal(false);
|
|
527
527
|
setModalObj({ title: '', subTitle: '' });
|
|
528
528
|
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
// const redirect = decodeURIComponent(getCookie('redirect')) || '/';
|
|
532
|
-
// window.location.href = redirect;
|
|
529
|
+
const redirect = decodeURIComponent(getCookie('redirect')) || '/';
|
|
530
|
+
window.location.href = redirect;
|
|
533
531
|
};
|
|
534
532
|
|
|
535
533
|
const doneMutation = useMutation({
|