@daeryun/dr_components 0.9.39 → 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.
|
@@ -195,8 +195,7 @@ const StepTwo = () => {
|
|
|
195
195
|
// API 호출 함수
|
|
196
196
|
const fetchFieldData = (centerCode) => __awaiter(void 0, void 0, void 0, function* () {
|
|
197
197
|
try {
|
|
198
|
-
|
|
199
|
-
const response = yield fetch(`/api/mng/app/seo-template/field/list-by-center?center_code=${centerCode}`);
|
|
198
|
+
const response = yield fetch(`https://mng.daeryunlaw.com/api/app/seo-template/field/list-by-center?center_code=${centerCode}`);
|
|
200
199
|
if (!response.ok) {
|
|
201
200
|
throw new Error(`API 호출 실패: ${response.status}`);
|
|
202
201
|
}
|
|
@@ -681,24 +680,6 @@ const StepTwo = () => {
|
|
|
681
680
|
</div>
|
|
682
681
|
</div>
|
|
683
682
|
)} */}
|
|
684
|
-
{centerCodes.map((centerCode, index) => {
|
|
685
|
-
var _a, _b;
|
|
686
|
-
const currentFieldData = fieldData[centerCode];
|
|
687
|
-
const categoryName = (_a = categories.find(item => item.code === centerCode)) === null || _a === void 0 ? void 0 : _a.code_name;
|
|
688
|
-
if (!((_b = currentFieldData === null || currentFieldData === void 0 ? void 0 : currentFieldData.data) === null || _b === void 0 ? void 0 : _b.length)) {
|
|
689
|
-
return null;
|
|
690
|
-
}
|
|
691
|
-
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]">
|
|
692
|
-
<p className="body_large1_mo sm:body_large1_tb lg:body_large1 sm:w-[150px] sm:flex-shrink-0">
|
|
693
|
-
{categoryName}
|
|
694
|
-
</p>
|
|
695
|
-
<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]"/>
|
|
696
|
-
|
|
697
|
-
<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]'}`}>
|
|
698
|
-
{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}/>))}
|
|
699
|
-
</div>
|
|
700
|
-
</div>);
|
|
701
|
-
})}
|
|
702
683
|
</div>
|
|
703
684
|
<div className="mb-[56px] mt-[40px] flex flex-col items-center justify-center sm:mt-[60px] lg:mt-[79px]">
|
|
704
685
|
<div className="flex w-full flex-row items-center justify-center gap-[8px]">
|
|
@@ -248,8 +248,9 @@ const StepTwo = () => {
|
|
|
248
248
|
// API 호출 함수
|
|
249
249
|
const fetchFieldData = async (centerCode: string) => {
|
|
250
250
|
try {
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
const response = await fetch(
|
|
252
|
+
`https://mng.daeryunlaw.com/api/app/seo-template/field/list-by-center?center_code=${centerCode}`
|
|
253
|
+
);
|
|
253
254
|
|
|
254
255
|
if (!response.ok) {
|
|
255
256
|
throw new Error(`API 호출 실패: ${response.status}`);
|
|
@@ -773,44 +774,6 @@ const StepTwo = () => {
|
|
|
773
774
|
</div>
|
|
774
775
|
</div>
|
|
775
776
|
)} */}
|
|
776
|
-
{centerCodes.map((centerCode, index) => {
|
|
777
|
-
const currentFieldData = fieldData[centerCode];
|
|
778
|
-
const categoryName = categories.find(item => item.code === centerCode)?.code_name;
|
|
779
|
-
|
|
780
|
-
if (!currentFieldData?.data?.length) {
|
|
781
|
-
return null;
|
|
782
|
-
}
|
|
783
|
-
|
|
784
|
-
return (
|
|
785
|
-
<div
|
|
786
|
-
key={centerCode}
|
|
787
|
-
className="sm:flex sm:flex-row sm:rounded-[16px] sm:border sm:border-solid sm:border-grayScale5 sm:p-[40px] lg:rounded-[20px]"
|
|
788
|
-
>
|
|
789
|
-
<p className="body_large1_mo sm:body_large1_tb lg:body_large1 sm:w-[150px] sm:flex-shrink-0">
|
|
790
|
-
{categoryName}
|
|
791
|
-
</p>
|
|
792
|
-
<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]" />
|
|
793
|
-
|
|
794
|
-
<div
|
|
795
|
-
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]'}`}
|
|
796
|
-
>
|
|
797
|
-
{currentFieldData.data.map(item => (
|
|
798
|
-
<Box
|
|
799
|
-
key={item.type_idx}
|
|
800
|
-
type_idx={item.type_idx}
|
|
801
|
-
tag_title={item.tag_title}
|
|
802
|
-
selected={selectedList.includes(item.type_idx)}
|
|
803
|
-
selectedList={selectedList}
|
|
804
|
-
setSelectedList={setSelectedList}
|
|
805
|
-
activeTooltipId={activeTooltipId}
|
|
806
|
-
setActiveTooltipId={setActiveTooltipId}
|
|
807
|
-
tooltipTimeoutRef={tooltipTimeoutRef}
|
|
808
|
-
/>
|
|
809
|
-
))}
|
|
810
|
-
</div>
|
|
811
|
-
</div>
|
|
812
|
-
);
|
|
813
|
-
})}
|
|
814
777
|
</div>
|
|
815
778
|
<div className="mb-[56px] mt-[40px] flex flex-col items-center justify-center sm:mt-[60px] lg:mt-[79px]">
|
|
816
779
|
<div className="flex w-full flex-row items-center justify-center gap-[8px]">
|