@daeryun/dr_components 0.3.83 → 0.3.86
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/LoginShareCheckContainer.jsx +28 -2
- package/dist/components/page/Login/LoginShareCheckContainer.tsx +30 -0
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +24 -30
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +24 -30
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.jsx +1 -1
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.tsx +1 -1
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.js +2 -2
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.ts +2 -2
- package/dist/components/page/MyCase/_fetchers/getCase.js +2 -2
- package/dist/components/page/MyCase/_fetchers/getCase.ts +1 -1
- package/dist/components/page/MyCase/_fetchers/getCaseList.js +2 -2
- package/dist/components/page/MyCase/_fetchers/getCaseList.ts +1 -1
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.js +2 -2
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.ts +1 -1
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.js +2 -2
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.ts +1 -1
- package/dist/components/page/MyCase/_fetchers/getMyFileList.js +2 -2
- package/dist/components/page/MyCase/_fetchers/getMyFileList.ts +1 -1
- package/dist/components/page/MyCase/_fetchers/getTimeLine.js +2 -2
- package/dist/components/page/MyCase/_fetchers/getTimeLine.ts +1 -1
- package/dist/components/page/MyCase/_type/type.d.ts +9 -7
- package/dist/components/page/MyCase/_type/type.ts +11 -7
- package/dist/styles/globals.css +8 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -152,6 +152,32 @@ const LoginShareCheckContainer = ({ children, setUserInfo }) => {
|
|
|
152
152
|
});
|
|
153
153
|
/** 초기 유저 정보 세팅 */
|
|
154
154
|
const initializeUser = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
155
|
+
var _a, _b, _c, _d;
|
|
156
|
+
// 우선은 세션 스토리지로 담고 시작
|
|
157
|
+
if (typeof window !== 'undefined') {
|
|
158
|
+
setUserInfo({
|
|
159
|
+
email: typeof window !== 'undefined'
|
|
160
|
+
? sessionStorage.getItem(SESSION_KEY)
|
|
161
|
+
? ((_a = JSON.parse(sessionStorage.getItem(SESSION_KEY) || '')) === null || _a === void 0 ? void 0 : _a.email) || ''
|
|
162
|
+
: ''
|
|
163
|
+
: '',
|
|
164
|
+
name: typeof window !== 'undefined'
|
|
165
|
+
? sessionStorage.getItem(SESSION_KEY)
|
|
166
|
+
? ((_b = JSON.parse(sessionStorage.getItem(SESSION_KEY) || '')) === null || _b === void 0 ? void 0 : _b.name) || ''
|
|
167
|
+
: ''
|
|
168
|
+
: '',
|
|
169
|
+
provider: typeof window !== 'undefined'
|
|
170
|
+
? sessionStorage.getItem(SESSION_KEY)
|
|
171
|
+
? ((_c = JSON.parse(sessionStorage.getItem(SESSION_KEY) || '')) === null || _c === void 0 ? void 0 : _c.provider) || ''
|
|
172
|
+
: ''
|
|
173
|
+
: '',
|
|
174
|
+
isLogin: typeof window !== 'undefined'
|
|
175
|
+
? sessionStorage.getItem(SESSION_KEY)
|
|
176
|
+
? ((_d = JSON.parse(sessionStorage.getItem(SESSION_KEY) || '')) === null || _d === void 0 ? void 0 : _d.isLogin) || false
|
|
177
|
+
: false
|
|
178
|
+
: false
|
|
179
|
+
});
|
|
180
|
+
}
|
|
155
181
|
const isCookieAllowed = yield checkThirdPartyCookie();
|
|
156
182
|
if (isCookieAllowed) {
|
|
157
183
|
const storedUser = sessionStorage.getItem(SESSION_KEY);
|
|
@@ -166,7 +192,7 @@ const LoginShareCheckContainer = ({ children, setUserInfo }) => {
|
|
|
166
192
|
return;
|
|
167
193
|
}
|
|
168
194
|
}
|
|
169
|
-
catch (
|
|
195
|
+
catch (_e) {
|
|
170
196
|
sessionStorage.removeItem(SESSION_KEY);
|
|
171
197
|
}
|
|
172
198
|
}
|
|
@@ -185,7 +211,7 @@ const LoginShareCheckContainer = ({ children, setUserInfo }) => {
|
|
|
185
211
|
return;
|
|
186
212
|
}
|
|
187
213
|
}
|
|
188
|
-
catch (
|
|
214
|
+
catch (_f) {
|
|
189
215
|
sessionStorage.removeItem(SESSION_KEY);
|
|
190
216
|
}
|
|
191
217
|
}
|
|
@@ -160,6 +160,36 @@ const LoginShareCheckContainer = ({ children, setUserInfo }: Props) => {
|
|
|
160
160
|
|
|
161
161
|
/** 초기 유저 정보 세팅 */
|
|
162
162
|
const initializeUser = async () => {
|
|
163
|
+
// 우선은 세션 스토리지로 담고 시작
|
|
164
|
+
if (typeof window !== 'undefined') {
|
|
165
|
+
setUserInfo({
|
|
166
|
+
email:
|
|
167
|
+
typeof window !== 'undefined'
|
|
168
|
+
? sessionStorage.getItem(SESSION_KEY)
|
|
169
|
+
? JSON.parse(sessionStorage.getItem(SESSION_KEY) || '')?.email || ''
|
|
170
|
+
: ''
|
|
171
|
+
: '',
|
|
172
|
+
name:
|
|
173
|
+
typeof window !== 'undefined'
|
|
174
|
+
? sessionStorage.getItem(SESSION_KEY)
|
|
175
|
+
? JSON.parse(sessionStorage.getItem(SESSION_KEY) || '')?.name || ''
|
|
176
|
+
: ''
|
|
177
|
+
: '',
|
|
178
|
+
provider:
|
|
179
|
+
typeof window !== 'undefined'
|
|
180
|
+
? sessionStorage.getItem(SESSION_KEY)
|
|
181
|
+
? JSON.parse(sessionStorage.getItem(SESSION_KEY) || '')?.provider || ''
|
|
182
|
+
: ''
|
|
183
|
+
: '',
|
|
184
|
+
isLogin:
|
|
185
|
+
typeof window !== 'undefined'
|
|
186
|
+
? sessionStorage.getItem(SESSION_KEY)
|
|
187
|
+
? JSON.parse(sessionStorage.getItem(SESSION_KEY) || '')?.isLogin || false
|
|
188
|
+
: false
|
|
189
|
+
: false
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
|
|
163
193
|
const isCookieAllowed = await checkThirdPartyCookie();
|
|
164
194
|
|
|
165
195
|
if (isCookieAllowed) {
|
|
@@ -12,38 +12,32 @@ const Label = ({ title, status }) => {
|
|
|
12
12
|
};
|
|
13
13
|
const LineBox = ({ children, title }) => {
|
|
14
14
|
return (<div className=" border-b-[1px] border-solid border-grayScale6 pb-[8px] pt-[24px] sm-top:py-[24px]">
|
|
15
|
-
{title && <p className="
|
|
15
|
+
{title && <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">{title}</p>}
|
|
16
16
|
<div className="flex flex-row items-center justify-between">{children}</div>
|
|
17
17
|
</div>);
|
|
18
18
|
};
|
|
19
19
|
const ContactInfo = () => {
|
|
20
20
|
const list = {
|
|
21
|
-
payment_status: '
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
payment_status: '완납',
|
|
22
|
+
price: '11200000',
|
|
23
|
+
balance: '2000',
|
|
24
24
|
payments: [
|
|
25
25
|
{
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
created_at: '2025-02-19 14:53:14',
|
|
34
|
-
amount: 3290000,
|
|
35
|
-
method: '신용카드 - 롯데카드 (03개월 할부)'
|
|
36
|
-
},
|
|
37
|
-
{ title: '수임료', created_at: '2025-02-20 14:53:14', amount: 1600000, method: '계좌이체 - 신한은행' },
|
|
38
|
-
{ title: '수임료', created_at: '2025-02-21 14:53:14', amount: 500000, method: '계좌이체 - 현대카드' }
|
|
26
|
+
pay_type: '수임료',
|
|
27
|
+
card_name: '롯데카드',
|
|
28
|
+
money: '11200000',
|
|
29
|
+
pay_date: '2025-03-10T00:00:00.000Z',
|
|
30
|
+
img_name: '25.03.10 천은유 영수증.pdf',
|
|
31
|
+
img_path: 'https://d6robzfync7d.cloudfront.net/consult/20250310105625220.pdf'
|
|
32
|
+
}
|
|
39
33
|
]
|
|
40
34
|
};
|
|
41
35
|
const [isOpen, setIsOpen] = useState(false);
|
|
42
36
|
return (<CaseLayout isMobilePadding={false} outerClassName="mt-[35px] sm-top:mt-[24px] lg:mt-[40px] " innerClassName={'pt-[32px] px-[20px] pb-[40px] 2sm:px-[40px] sm-top:mt-[24px] sm-top:px-[50px] sm-top:pb-[60px] sm-top:pt-[56px] lg:pt-[60px] lg:pb-[80px] lg:px-[60px]'}>
|
|
43
37
|
<div className="flex flex-row items-center justify-between">
|
|
44
38
|
<div className="flex flex-row gap-[12px] sm-top:gap-[28px] lg:gap-[32px]">
|
|
45
|
-
<Label title="일부납" status={list.payment_status
|
|
46
|
-
<Label title="완납" status={list.payment_status
|
|
39
|
+
<Label title="일부납" status={list.payment_status !== '완납'}/>
|
|
40
|
+
<Label title="완납" status={list.payment_status === '완납'}/>
|
|
47
41
|
</div>
|
|
48
42
|
<button className={`flex h-[26px] w-[66px] items-center justify-center rounded-[13px] border border-solid border-black sm-top:h-[39px] sm-top:w-[96px] sm-top:rounded-[20px] lg:h-[41px] lg:w-[95px] lg:rounded-[21px]`} onClick={() => setIsOpen(!isOpen)}>
|
|
49
43
|
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2">내 약정서</p>
|
|
@@ -52,34 +46,34 @@ const ContactInfo = () => {
|
|
|
52
46
|
|
|
53
47
|
<div className={'mt-[16px] sm-top:mt-[28px] lg:mt-[26px]'}>
|
|
54
48
|
<LineBox>
|
|
55
|
-
<p className="
|
|
56
|
-
<p className="
|
|
57
|
-
{list.
|
|
49
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">착수금</p>
|
|
50
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">
|
|
51
|
+
{Number(list.price).toLocaleString()}원
|
|
58
52
|
</p>
|
|
59
53
|
</LineBox>
|
|
60
54
|
|
|
61
55
|
{list.payments.map((item, index) => (<LineBox key={index} title={index === 0 ? '입금액' : ''}>
|
|
62
56
|
<div className={`${index === 0 ? 'mt-[13px] sm-top:mt-[16px] lg:mt-[25px] ' : ''} flex flex-col gap-[8px] sm-top:gap-[12px] lg:gap-[8px]`}>
|
|
63
57
|
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
64
|
-
{item.
|
|
58
|
+
{item.pay_type}
|
|
65
59
|
</p>
|
|
66
60
|
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
67
|
-
{dayjs(item.
|
|
61
|
+
{dayjs(item.pay_date).format('YYYY.MM.DD HH:mm')}
|
|
68
62
|
</p>
|
|
69
63
|
</div>
|
|
70
64
|
<div className="flex flex-col items-end gap-[8px] sm-top:gap-[12px] lg:gap-[8px]">
|
|
71
|
-
<p className="
|
|
72
|
-
{item.
|
|
65
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">
|
|
66
|
+
{Number(item.money).toLocaleString()}원
|
|
73
67
|
</p>
|
|
74
68
|
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
75
|
-
{item.
|
|
69
|
+
{item.card_name}
|
|
76
70
|
</p>
|
|
77
71
|
</div>
|
|
78
72
|
</LineBox>))}
|
|
79
73
|
<LineBox>
|
|
80
|
-
<p className="
|
|
81
|
-
<p className="
|
|
82
|
-
{list.
|
|
74
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">잔여금액</p>
|
|
75
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">
|
|
76
|
+
{Number(list.balance).toLocaleString()}원
|
|
83
77
|
</p>
|
|
84
78
|
</LineBox>
|
|
85
79
|
</div>
|
|
@@ -21,31 +21,25 @@ const Label = ({ title, status }: { title: string; status: boolean }) => {
|
|
|
21
21
|
const LineBox = ({ children, title }: { children: React.ReactNode; title?: string }) => {
|
|
22
22
|
return (
|
|
23
23
|
<div className=" border-b-[1px] border-solid border-grayScale6 pb-[8px] pt-[24px] sm-top:py-[24px]">
|
|
24
|
-
{title && <p className="
|
|
24
|
+
{title && <p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">{title}</p>}
|
|
25
25
|
<div className="flex flex-row items-center justify-between">{children}</div>
|
|
26
26
|
</div>
|
|
27
27
|
);
|
|
28
28
|
};
|
|
29
29
|
const ContactInfo = () => {
|
|
30
30
|
const list: PaymentList = {
|
|
31
|
-
payment_status: '
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
payment_status: '완납',
|
|
32
|
+
price: '11200000',
|
|
33
|
+
balance: '2000',
|
|
34
34
|
payments: [
|
|
35
35
|
{
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
created_at: '2025-02-19 14:53:14',
|
|
44
|
-
amount: 3290000,
|
|
45
|
-
method: '신용카드 - 롯데카드 (03개월 할부)'
|
|
46
|
-
},
|
|
47
|
-
{ title: '수임료', created_at: '2025-02-20 14:53:14', amount: 1600000, method: '계좌이체 - 신한은행' },
|
|
48
|
-
{ title: '수임료', created_at: '2025-02-21 14:53:14', amount: 500000, method: '계좌이체 - 현대카드' }
|
|
36
|
+
pay_type: '수임료',
|
|
37
|
+
card_name: '롯데카드',
|
|
38
|
+
money: '11200000',
|
|
39
|
+
pay_date: '2025-03-10T00:00:00.000Z',
|
|
40
|
+
img_name: '25.03.10 천은유 영수증.pdf',
|
|
41
|
+
img_path: 'https://d6robzfync7d.cloudfront.net/consult/20250310105625220.pdf'
|
|
42
|
+
}
|
|
49
43
|
]
|
|
50
44
|
};
|
|
51
45
|
const [isOpen, setIsOpen] = useState(false);
|
|
@@ -59,8 +53,8 @@ const ContactInfo = () => {
|
|
|
59
53
|
>
|
|
60
54
|
<div className="flex flex-row items-center justify-between">
|
|
61
55
|
<div className="flex flex-row gap-[12px] sm-top:gap-[28px] lg:gap-[32px]">
|
|
62
|
-
<Label title="일부납" status={list.payment_status
|
|
63
|
-
<Label title="완납" status={list.payment_status
|
|
56
|
+
<Label title="일부납" status={list.payment_status !== '완납'} />
|
|
57
|
+
<Label title="완납" status={list.payment_status === '완납'} />
|
|
64
58
|
</div>
|
|
65
59
|
<button
|
|
66
60
|
className={`flex h-[26px] w-[66px] items-center justify-center rounded-[13px] border border-solid border-black sm-top:h-[39px] sm-top:w-[96px] sm-top:rounded-[20px] lg:h-[41px] lg:w-[95px] lg:rounded-[21px]`}
|
|
@@ -72,9 +66,9 @@ const ContactInfo = () => {
|
|
|
72
66
|
|
|
73
67
|
<div className={'mt-[16px] sm-top:mt-[28px] lg:mt-[26px]'}>
|
|
74
68
|
<LineBox>
|
|
75
|
-
<p className="
|
|
76
|
-
<p className="
|
|
77
|
-
{list.
|
|
69
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">착수금</p>
|
|
70
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">
|
|
71
|
+
{Number(list.price).toLocaleString()}원
|
|
78
72
|
</p>
|
|
79
73
|
</LineBox>
|
|
80
74
|
|
|
@@ -84,26 +78,26 @@ const ContactInfo = () => {
|
|
|
84
78
|
className={`${index === 0 ? 'mt-[13px] sm-top:mt-[16px] lg:mt-[25px] ' : ''} flex flex-col gap-[8px] sm-top:gap-[12px] lg:gap-[8px]`}
|
|
85
79
|
>
|
|
86
80
|
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
87
|
-
{item.
|
|
81
|
+
{item.pay_type}
|
|
88
82
|
</p>
|
|
89
83
|
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
90
|
-
{dayjs(item.
|
|
84
|
+
{dayjs(item.pay_date).format('YYYY.MM.DD HH:mm')}
|
|
91
85
|
</p>
|
|
92
86
|
</div>
|
|
93
87
|
<div className="flex flex-col items-end gap-[8px] sm-top:gap-[12px] lg:gap-[8px]">
|
|
94
|
-
<p className="
|
|
95
|
-
{item.
|
|
88
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">
|
|
89
|
+
{Number(item.money).toLocaleString()}원
|
|
96
90
|
</p>
|
|
97
91
|
<p className="body_small2_mo sm-top:body_small2_tb lg:body_small2 text-grayScale2">
|
|
98
|
-
{item.
|
|
92
|
+
{item.card_name}
|
|
99
93
|
</p>
|
|
100
94
|
</div>
|
|
101
95
|
</LineBox>
|
|
102
96
|
))}
|
|
103
97
|
<LineBox>
|
|
104
|
-
<p className="
|
|
105
|
-
<p className="
|
|
106
|
-
{list.
|
|
98
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">잔여금액</p>
|
|
99
|
+
<p className="body_medium1_mo sm-top:body_medium1_tb lg:body_medium1 text-black">
|
|
100
|
+
{Number(list.balance).toLocaleString()}원
|
|
107
101
|
</p>
|
|
108
102
|
</LineBox>
|
|
109
103
|
</div>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
const HeaderLayout = ({ children }) => {
|
|
2
|
-
return <div className="mt-[
|
|
2
|
+
return <div className="mt-[68px] overflow-hidden md:mt-[126px] md2:mt-[128px]">{children}</div>;
|
|
3
3
|
};
|
|
4
4
|
export default HeaderLayout;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const HeaderLayout = ({ children }: { children: React.ReactNode }) => {
|
|
2
|
-
return <div className="mt-[
|
|
2
|
+
return <div className="mt-[68px] overflow-hidden md:mt-[126px] md2:mt-[128px]">{children}</div>;
|
|
3
3
|
};
|
|
4
4
|
|
|
5
5
|
export default HeaderLayout;
|
|
@@ -15,8 +15,8 @@ const addMyCaseQuestion = (_a) => __awaiter(void 0, [_a], void 0, function* ({ j
|
|
|
15
15
|
const response = yield Fetch(url, {
|
|
16
16
|
method: 'POST',
|
|
17
17
|
headers: {
|
|
18
|
-
'Content-Type': 'application/json'
|
|
19
|
-
Authorization: `${jwt}`
|
|
18
|
+
'Content-Type': 'application/json'
|
|
19
|
+
// Authorization: `${jwt}`
|
|
20
20
|
},
|
|
21
21
|
body: JSON.stringify({ content })
|
|
22
22
|
});
|
|
@@ -7,8 +7,8 @@ const addMyCaseQuestion = async ({ jwt, id, content }: { jwt: string; id: string
|
|
|
7
7
|
const response = await Fetch(url, {
|
|
8
8
|
method: 'POST',
|
|
9
9
|
headers: {
|
|
10
|
-
'Content-Type': 'application/json'
|
|
11
|
-
Authorization: `${jwt}`
|
|
10
|
+
'Content-Type': 'application/json'
|
|
11
|
+
// Authorization: `${jwt}`
|
|
12
12
|
},
|
|
13
13
|
body: JSON.stringify({ content })
|
|
14
14
|
});
|
|
@@ -15,8 +15,8 @@ const getCase = (_a) => __awaiter(void 0, [_a], void 0, function* ({ jwt, id })
|
|
|
15
15
|
const response = yield Fetch(url, {
|
|
16
16
|
method: 'GET',
|
|
17
17
|
headers: {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
// 'Content-Type': 'application/json',
|
|
19
|
+
// Authorization: `${jwt}`
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
// if (!response.ok) {
|
|
@@ -15,8 +15,8 @@ const getCaseList = (_a) => __awaiter(void 0, [_a], void 0, function* ({ jwt, si
|
|
|
15
15
|
const response = yield Fetch(url, {
|
|
16
16
|
method: 'GET',
|
|
17
17
|
headers: {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
// 'Content-Type': 'application/json',
|
|
19
|
+
// Authorization: `${jwt}`
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
// if (!response.ok) {
|
|
@@ -15,8 +15,8 @@ const getCourtFileList = (_a) => __awaiter(void 0, [_a], void 0, function* ({ jw
|
|
|
15
15
|
const response = yield Fetch(url, {
|
|
16
16
|
method: 'GET',
|
|
17
17
|
headers: {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
// 'Content-Type': 'application/json',
|
|
19
|
+
// Authorization: `${jwt}`
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
// if (!response.ok) {
|
|
@@ -15,8 +15,8 @@ const getMyCaseQuestion = (_a) => __awaiter(void 0, [_a], void 0, function* ({ j
|
|
|
15
15
|
const response = yield Fetch(url, {
|
|
16
16
|
method: 'GET',
|
|
17
17
|
headers: {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
// 'Content-Type': 'application/json',
|
|
19
|
+
// Authorization: `${jwt}`
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
// if (!response.ok) {
|
|
@@ -15,8 +15,8 @@ const getMyFileList = (_a) => __awaiter(void 0, [_a], void 0, function* ({ jwt,
|
|
|
15
15
|
const response = yield Fetch(url, {
|
|
16
16
|
method: 'GET',
|
|
17
17
|
headers: {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
// 'Content-Type': 'application/json',
|
|
19
|
+
// Authorization: `${jwt}`
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
// if (!response.ok) {
|
|
@@ -15,8 +15,8 @@ const getTimeLine = (_a) => __awaiter(void 0, [_a], void 0, function* ({ jwt, id
|
|
|
15
15
|
const response = yield Fetch(url, {
|
|
16
16
|
method: 'GET',
|
|
17
17
|
headers: {
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
// 'Content-Type': 'application/json',
|
|
19
|
+
// Authorization: `${jwt}`
|
|
20
20
|
}
|
|
21
21
|
});
|
|
22
22
|
// if (!response.ok) {
|
|
@@ -54,15 +54,17 @@ export interface FileList {
|
|
|
54
54
|
created_at: string;
|
|
55
55
|
}
|
|
56
56
|
export type Payment = {
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
57
|
+
pay_type: string;
|
|
58
|
+
money: string;
|
|
59
|
+
pay_date: string;
|
|
60
|
+
card_name: string;
|
|
61
|
+
img_name: string;
|
|
62
|
+
img_path: string;
|
|
61
63
|
};
|
|
62
64
|
export type PaymentList = {
|
|
63
|
-
payment_status: '
|
|
64
|
-
|
|
65
|
-
|
|
65
|
+
payment_status: '완납' | '일부납';
|
|
66
|
+
price: string;
|
|
67
|
+
balance: string;
|
|
66
68
|
payments: Payment[];
|
|
67
69
|
};
|
|
68
70
|
export type Question = {
|
|
@@ -60,16 +60,20 @@ export interface FileList {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export type Payment = {
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
pay_type: string;
|
|
64
|
+
|
|
65
|
+
money: string;
|
|
66
|
+
pay_date: string;
|
|
67
|
+
card_name: string;
|
|
68
|
+
img_name: string;
|
|
69
|
+
img_path: string;
|
|
67
70
|
};
|
|
68
71
|
|
|
69
72
|
export type PaymentList = {
|
|
70
|
-
payment_status: '
|
|
71
|
-
|
|
72
|
-
|
|
73
|
+
payment_status: '완납' | '일부납'; //일부납/완납
|
|
74
|
+
price: string; // 착수금
|
|
75
|
+
balance: string; // 잔여 금액
|
|
76
|
+
// remaining_amount: number; // 잔여금액
|
|
73
77
|
payments: Payment[];
|
|
74
78
|
};
|
|
75
79
|
|
package/dist/styles/globals.css
CHANGED
|
@@ -9377,6 +9377,10 @@ body {
|
|
|
9377
9377
|
margin-top: 0.5rem;
|
|
9378
9378
|
}
|
|
9379
9379
|
|
|
9380
|
+
.md\:mt-\[126px\] {
|
|
9381
|
+
margin-top: 126px;
|
|
9382
|
+
}
|
|
9383
|
+
|
|
9380
9384
|
.md\:mt-\[78px\] {
|
|
9381
9385
|
margin-top: 78px;
|
|
9382
9386
|
}
|
|
@@ -9417,6 +9421,10 @@ body {
|
|
|
9417
9421
|
}
|
|
9418
9422
|
|
|
9419
9423
|
@media (min-width: 900px) {
|
|
9424
|
+
.md2\:mt-\[128px\] {
|
|
9425
|
+
margin-top: 128px;
|
|
9426
|
+
}
|
|
9427
|
+
|
|
9420
9428
|
.md2\:mt-\[88px\] {
|
|
9421
9429
|
margin-top: 88px;
|
|
9422
9430
|
}
|