@daeryun/dr_components 0.9.46 → 0.9.48

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.
@@ -94,7 +94,7 @@ const Box = ({ code, code_name, selected, selectedList, setSelectedList, activeT
94
94
  tooltipTimeoutRef.current = setTimeout(() => {
95
95
  setActiveTooltipId(null);
96
96
  tooltipTimeoutRef.current = null;
97
- }, 3000000);
97
+ }, 2000);
98
98
  return;
99
99
  }
100
100
  setSelectedList(prev => [...prev, code]);
@@ -118,7 +118,7 @@ const Box = ({
118
118
  tooltipTimeoutRef.current = setTimeout(() => {
119
119
  setActiveTooltipId(null);
120
120
  tooltipTimeoutRef.current = null;
121
- }, 3000000);
121
+ }, 2000);
122
122
 
123
123
  return;
124
124
  }
@@ -111,7 +111,7 @@ const Box = ({ type_idx, tag_title, selected, selectedList, setSelectedList, act
111
111
  tooltipTimeoutRef.current = setTimeout(() => {
112
112
  setActiveTooltipId(null);
113
113
  tooltipTimeoutRef.current = null;
114
- }, 3000000);
114
+ }, 2000);
115
115
  return;
116
116
  }
117
117
  const newSelectedList = [...selectedList, type_idx];
@@ -156,7 +156,6 @@ const StepTwo = () => {
156
156
  const [selectedList, setSelectedList] = useState([]);
157
157
  const [activeTooltipId, setActiveTooltipId] = useState(null);
158
158
  const tooltipTimeoutRef = useRef(null);
159
- // const { data: categories, isLoading: categoriesLoading } = actionGetDetailCategoryList('CT0001');
160
159
  const [isModal, setIsModal] = useState(false);
161
160
  const [modalObj, setModalObj] = useState({
162
161
  title: '',
@@ -306,6 +305,7 @@ const StepTwo = () => {
306
305
  });
307
306
  // 페이지 로드 시 sessionStorage에서 선택된 카테고리를 읽어서 API 호출
308
307
  useEffect(() => {
308
+ setIsLoading(true);
309
309
  const initializeData = () => __awaiter(void 0, void 0, void 0, function* () {
310
310
  try {
311
311
  const existingLogin = sessionStorage.getItem('login');
@@ -338,6 +338,9 @@ const StepTwo = () => {
338
338
  catch (error) {
339
339
  console.error('데이터 초기화 실패:', error);
340
340
  }
341
+ finally {
342
+ setIsLoading(false);
343
+ }
341
344
  });
342
345
  initializeData();
343
346
  }, []);
@@ -135,7 +135,7 @@ const Box = ({
135
135
  tooltipTimeoutRef.current = setTimeout(() => {
136
136
  setActiveTooltipId(null);
137
137
  tooltipTimeoutRef.current = null;
138
- }, 3000000);
138
+ }, 2000);
139
139
 
140
140
  return;
141
141
  }
@@ -204,7 +204,6 @@ const StepTwo = () => {
204
204
  const [selectedList, setSelectedList] = useState<number[]>([]);
205
205
  const [activeTooltipId, setActiveTooltipId] = useState<number | null>(null);
206
206
  const tooltipTimeoutRef = useRef<NodeJS.Timeout | null>(null);
207
- // const { data: categories, isLoading: categoriesLoading } = actionGetDetailCategoryList('CT0001');
208
207
  const [isModal, setIsModal] = useState<boolean>(false);
209
208
  const [modalObj, setModalObj] = useState<{ title: string; subTitle: string }>({
210
209
  title: '',
@@ -382,6 +381,8 @@ const StepTwo = () => {
382
381
 
383
382
  // 페이지 로드 시 sessionStorage에서 선택된 카테고리를 읽어서 API 호출
384
383
  useEffect(() => {
384
+ setIsLoading(true);
385
+
385
386
  const initializeData = async () => {
386
387
  try {
387
388
  const existingLogin = sessionStorage.getItem('login');
@@ -419,6 +420,8 @@ const StepTwo = () => {
419
420
  }
420
421
  } catch (error) {
421
422
  console.error('데이터 초기화 실패:', error);
423
+ } finally {
424
+ setIsLoading(false);
422
425
  }
423
426
  };
424
427