@daeryun/dr_components 0.6.61 → 0.6.62
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.
- package/dist/components/page/Login/LoginComp/SignContainer.jsx +5 -5
- package/dist/components/page/Login/LoginComp/SignContainer.tsx +4 -4
- package/dist/components/page/Login/_types/termType.d.ts +1 -1
- package/dist/components/page/Login/_types/termType.ts +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -84,8 +84,8 @@ const SignContainer = ({ layoutClassName = `mt-[47px] py-[128px] max-lg:mt-[40px
|
|
|
84
84
|
}
|
|
85
85
|
});
|
|
86
86
|
useEffect(() => {
|
|
87
|
-
var _a
|
|
88
|
-
if (termListStatus === 'success' && Array.isArray(termList
|
|
87
|
+
var _a;
|
|
88
|
+
if (termListStatus === 'success' && Array.isArray(termList)) {
|
|
89
89
|
setRequiredTermItems([
|
|
90
90
|
{
|
|
91
91
|
title: '전체 동의',
|
|
@@ -104,14 +104,14 @@ const SignContainer = ({ layoutClassName = `mt-[47px] py-[128px] max-lg:mt-[40px
|
|
|
104
104
|
termCode: '',
|
|
105
105
|
contents: ''
|
|
106
106
|
},
|
|
107
|
-
...((
|
|
108
|
-
title: `${item.
|
|
107
|
+
...((_a = termList === null || termList === void 0 ? void 0 : termList.map(item => ({
|
|
108
|
+
title: `${item.terms_name} (필수)`,
|
|
109
109
|
name: 'required',
|
|
110
110
|
checked: false,
|
|
111
111
|
contents: item.contents || '',
|
|
112
112
|
isContent: !!item.contents,
|
|
113
113
|
termCode: item.terms_code || ''
|
|
114
|
-
}))) !== null &&
|
|
114
|
+
}))) !== null && _a !== void 0 ? _a : [])
|
|
115
115
|
]);
|
|
116
116
|
}
|
|
117
117
|
}, [termList, termListStatus]);
|
|
@@ -127,7 +127,7 @@ const SignContainer = ({
|
|
|
127
127
|
}
|
|
128
128
|
]);
|
|
129
129
|
|
|
130
|
-
const { data: termList, status: termListStatus } = useQuery<
|
|
130
|
+
const { data: termList, status: termListStatus } = useQuery<ITermType[]>({
|
|
131
131
|
queryKey: ['term', 'sign', 'list'],
|
|
132
132
|
queryFn: () => {
|
|
133
133
|
return fetch(`${process.env.NEXT_PUBLIC_SERVICE_DOMAIN}/api/terms/sign/latest`, {
|
|
@@ -139,7 +139,7 @@ const SignContainer = ({
|
|
|
139
139
|
});
|
|
140
140
|
|
|
141
141
|
useEffect(() => {
|
|
142
|
-
if (termListStatus === 'success' && Array.isArray(termList
|
|
142
|
+
if (termListStatus === 'success' && Array.isArray(termList)) {
|
|
143
143
|
setRequiredTermItems([
|
|
144
144
|
{
|
|
145
145
|
title: '전체 동의',
|
|
@@ -158,8 +158,8 @@ const SignContainer = ({
|
|
|
158
158
|
termCode: '',
|
|
159
159
|
contents: ''
|
|
160
160
|
},
|
|
161
|
-
...(termList?.
|
|
162
|
-
title: `${item.
|
|
161
|
+
...(termList?.map(item => ({
|
|
162
|
+
title: `${item.terms_name} (필수)`,
|
|
163
163
|
name: 'required',
|
|
164
164
|
checked: false,
|
|
165
165
|
contents: item.contents || '',
|