@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.
@@ -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, _b;
88
- if (termListStatus === 'success' && Array.isArray(termList === null || termList === void 0 ? void 0 : termList.list)) {
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
- ...((_b = (_a = termList === null || termList === void 0 ? void 0 : termList.list) === null || _a === void 0 ? void 0 : _a.map(item => ({
108
- title: `${item.code_name} (필수)`,
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 && _b !== void 0 ? _b : [])
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<{ list: ITermType[] }>({
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?.list)) {
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?.list?.map(item => ({
162
- title: `${item.code_name} (필수)`,
161
+ ...(termList?.map(item => ({
162
+ title: `${item.terms_name} (필수)`,
163
163
  name: 'required',
164
164
  checked: false,
165
165
  contents: item.contents || '',
@@ -11,6 +11,6 @@ export interface ITermType {
11
11
  is_use: boolean;
12
12
  title: string;
13
13
  terms_code: string | null;
14
- code_name: string;
14
+ terms_name: string;
15
15
  rn: number | null;
16
16
  }
@@ -11,6 +11,6 @@ export interface ITermType {
11
11
  is_use: boolean;
12
12
  title: string;
13
13
  terms_code: string | null;
14
- code_name: string;
14
+ terms_name: string;
15
15
  rn: number | null;
16
16
  }