@daeryun/dr_components 0.9.40 → 0.9.41

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.
@@ -203,7 +203,7 @@ const StepTwo = () => {
203
203
  return data;
204
204
  }
205
205
  catch (error) {
206
- console.error(`API 호출 실패:`, error);
206
+ console.error(`Center code ${centerCode} API 호출 실패:`, error);
207
207
  return { result: false, data: [] };
208
208
  }
209
209
  });
@@ -680,24 +680,6 @@ const StepTwo = () => {
680
680
  </div>
681
681
  </div>
682
682
  )} */}
683
- {centerCodes.map((centerCode, index) => {
684
- var _a, _b;
685
- const currentFieldData = fieldData[centerCode];
686
- const categoryName = (_a = categories.find(item => item.code === centerCode)) === null || _a === void 0 ? void 0 : _a.code_name;
687
- if (!((_b = currentFieldData === null || currentFieldData === void 0 ? void 0 : currentFieldData.data) === null || _b === void 0 ? void 0 : _b.length)) {
688
- return null;
689
- }
690
- return (<div key={centerCode} className="sm:flex sm:flex-row sm:rounded-[16px] sm:border sm:border-solid sm:border-grayScale5 sm:p-[40px] lg:rounded-[20px]">
691
- <p className="body_large1_mo sm:body_large1_tb lg:body_large1 sm:w-[150px] sm:flex-shrink-0">
692
- {categoryName}
693
- </p>
694
- <div className="my-[12px] w-full bg-grayScale5 max-sm:h-[1px] sm:mx-[44px] sm:my-0 sm:h-auto sm:w-[1px] sm:flex-shrink-0 lg:gap-[80px]"/>
695
-
696
- <div className={`flex flex-row flex-wrap gap-x-[8px] gap-y-[12px] sm:gap-[20px] lg:gap-x-[24px] ${index === 1 ? 'lg:gap-y-[32px]' : 'lg:gap-y-[24px]'}`}>
697
- {currentFieldData.data.map(item => (<Box key={item.type_idx} type_idx={item.type_idx} tag_title={item.tag_title} selected={selectedList.includes(item.type_idx)} selectedList={selectedList} setSelectedList={setSelectedList} activeTooltipId={activeTooltipId} setActiveTooltipId={setActiveTooltipId} tooltipTimeoutRef={tooltipTimeoutRef}/>))}
698
- </div>
699
- </div>);
700
- })}
701
683
  </div>
702
684
  <div className="mb-[56px] mt-[40px] flex flex-col items-center justify-center sm:mt-[60px] lg:mt-[79px]">
703
685
  <div className="flex w-full flex-row items-center justify-center gap-[8px]">
@@ -259,7 +259,7 @@ const StepTwo = () => {
259
259
  const data = await response.json();
260
260
  return data;
261
261
  } catch (error) {
262
- console.error(`API 호출 실패:`, error);
262
+ console.error(`Center code ${centerCode} API 호출 실패:`, error);
263
263
  return { result: false, data: [] };
264
264
  }
265
265
  };
@@ -774,44 +774,6 @@ const StepTwo = () => {
774
774
  </div>
775
775
  </div>
776
776
  )} */}
777
- {centerCodes.map((centerCode, index) => {
778
- const currentFieldData = fieldData[centerCode];
779
- const categoryName = categories.find(item => item.code === centerCode)?.code_name;
780
-
781
- if (!currentFieldData?.data?.length) {
782
- return null;
783
- }
784
-
785
- return (
786
- <div
787
- key={centerCode}
788
- className="sm:flex sm:flex-row sm:rounded-[16px] sm:border sm:border-solid sm:border-grayScale5 sm:p-[40px] lg:rounded-[20px]"
789
- >
790
- <p className="body_large1_mo sm:body_large1_tb lg:body_large1 sm:w-[150px] sm:flex-shrink-0">
791
- {categoryName}
792
- </p>
793
- <div className="my-[12px] w-full bg-grayScale5 max-sm:h-[1px] sm:mx-[44px] sm:my-0 sm:h-auto sm:w-[1px] sm:flex-shrink-0 lg:gap-[80px]" />
794
-
795
- <div
796
- className={`flex flex-row flex-wrap gap-x-[8px] gap-y-[12px] sm:gap-[20px] lg:gap-x-[24px] ${index === 1 ? 'lg:gap-y-[32px]' : 'lg:gap-y-[24px]'}`}
797
- >
798
- {currentFieldData.data.map(item => (
799
- <Box
800
- key={item.type_idx}
801
- type_idx={item.type_idx}
802
- tag_title={item.tag_title}
803
- selected={selectedList.includes(item.type_idx)}
804
- selectedList={selectedList}
805
- setSelectedList={setSelectedList}
806
- activeTooltipId={activeTooltipId}
807
- setActiveTooltipId={setActiveTooltipId}
808
- tooltipTimeoutRef={tooltipTimeoutRef}
809
- />
810
- ))}
811
- </div>
812
- </div>
813
- );
814
- })}
815
777
  </div>
816
778
  <div className="mb-[56px] mt-[40px] flex flex-col items-center justify-center sm:mt-[60px] lg:mt-[79px]">
817
779
  <div className="flex w-full flex-row items-center justify-center gap-[8px]">