@daeryun/dr_components 0.2.97 → 0.2.99
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/banner/TopBanner.jsx +11 -14
- package/dist/components/banner/TopBanner.tsx +12 -15
- package/dist/components/page/index.d.ts +0 -4
- package/dist/components/page/index.js +0 -4
- package/dist/components/page/index.ts +0 -4
- package/dist/styles/globals.css +115 -2077
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -2
- package/dist/components/page/MyCase/MyCase.stories.d.ts +0 -6
- package/dist/components/page/MyCase/MyCase.stories.jsx +0 -17
- package/dist/components/page/MyCase/MyCase.stories.tsx +0 -25
- package/dist/components/page/MyCase/MyCaseApp.d.ts +0 -2
- package/dist/components/page/MyCase/MyCaseApp.jsx +0 -19
- package/dist/components/page/MyCase/MyCaseApp.tsx +0 -32
- package/dist/components/page/MyCase/MyCasePage.d.ts +0 -3
- package/dist/components/page/MyCase/MyCasePage.jsx +0 -20
- package/dist/components/page/MyCase/MyCasePage.tsx +0 -32
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.jsx +0 -17
- package/dist/components/page/MyCase/[id]/MyCaseDetail.stories.tsx +0 -25
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.d.ts +0 -3
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.jsx +0 -66
- package/dist/components/page/MyCase/[id]/MyCaseDetailApp.tsx +0 -159
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.d.ts +0 -3
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.jsx +0 -65
- package/dist/components/page/MyCase/[id]/MyCaseDetailPage.tsx +0 -157
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.d.ts +0 -2
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.jsx +0 -79
- package/dist/components/page/MyCase/[id]/_component/ContactInfo.tsx +0 -102
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.jsx +0 -44
- package/dist/components/page/MyCase/[id]/_component/DetailInfo.tsx +0 -94
- package/dist/components/page/MyCase/[id]/_component/TimeLine.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/_component/TimeLine.jsx +0 -46
- package/dist/components/page/MyCase/[id]/_component/TimeLine.tsx +0 -72
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.d.ts +0 -11
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.jsx +0 -80
- package/dist/components/page/MyCase/[id]/_component/_caseInquiry/CaseInquiry.tsx +0 -188
- package/dist/components/page/MyCase/[id]/_component/_document/Document.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/_component/_document/Document.jsx +0 -35
- package/dist/components/page/MyCase/[id]/_component/_document/Document.tsx +0 -59
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.d.ts +0 -6
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.jsx +0 -76
- package/dist/components/page/MyCase/[id]/_component/_document/DocumentLine.tsx +0 -94
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.d.ts +0 -7
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.jsx +0 -107
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryAddModal.tsx +0 -150
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.d.ts +0 -7
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.jsx +0 -25
- package/dist/components/page/MyCase/[id]/_component/_modal/CaseInquiryConfirmModal.tsx +0 -55
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.d.ts +0 -7
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.jsx +0 -26
- package/dist/components/page/MyCase/[id]/_component/_modal/ModalCotainer.tsx +0 -39
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.d.ts +0 -7
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.jsx +0 -4
- package/dist/components/page/MyCase/[id]/_component/_textarea/TextArea.tsx +0 -24
- package/dist/components/page/MyCase/_actions/action.d.ts +0 -35
- package/dist/components/page/MyCase/_actions/action.js +0 -145
- package/dist/components/page/MyCase/_actions/action.ts +0 -165
- package/dist/components/page/MyCase/_component/CaseAppContainer.d.ts +0 -2
- package/dist/components/page/MyCase/_component/CaseAppContainer.jsx +0 -117
- package/dist/components/page/MyCase/_component/CaseAppContainer.tsx +0 -255
- package/dist/components/page/MyCase/_component/CasePageContainer.d.ts +0 -2
- package/dist/components/page/MyCase/_component/CasePageContainer.jsx +0 -106
- package/dist/components/page/MyCase/_component/CasePageContainer.tsx +0 -244
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.d.ts +0 -7
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.jsx +0 -47
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuApp.tsx +0 -77
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.d.ts +0 -8
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.jsx +0 -47
- package/dist/components/page/MyCase/_component/_breadCrumble/CategoryMenuPage.tsx +0 -77
- package/dist/components/page/MyCase/_component/_button/Badge.d.ts +0 -14
- package/dist/components/page/MyCase/_component/_button/Badge.jsx +0 -16
- package/dist/components/page/MyCase/_component/_button/Badge.tsx +0 -22
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.d.ts +0 -7
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.jsx +0 -9
- package/dist/components/page/MyCase/_component/_button/SubColor1Button.tsx +0 -33
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.d.ts +0 -7
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.jsx +0 -9
- package/dist/components/page/MyCase/_component/_button/SubMenuButton.tsx +0 -31
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.d.ts +0 -6
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.jsx +0 -75
- package/dist/components/page/MyCase/_component/_empty/EmptyTable.tsx +0 -85
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.d.ts +0 -7
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.jsx +0 -11
- package/dist/components/page/MyCase/_component/_layout/CaseLayout.tsx +0 -29
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.d.ts +0 -12
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.jsx +0 -25
- package/dist/components/page/MyCase/_component/_layout/CaseWrapper.tsx +0 -41
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.d.ts +0 -4
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.jsx +0 -4
- package/dist/components/page/MyCase/_component/_layout/HeaderLayout.tsx +0 -5
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.d.ts +0 -10
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.jsx +0 -29
- package/dist/components/page/MyCase/_component/_layout/IntroAppWrapper.tsx +0 -80
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.d.ts +0 -10
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.jsx +0 -31
- package/dist/components/page/MyCase/_component/_layout/IntroPageWrapper.tsx +0 -81
- package/dist/components/page/MyCase/_component/_loading/Loading.d.ts +0 -2
- package/dist/components/page/MyCase/_component/_loading/Loading.jsx +0 -89
- package/dist/components/page/MyCase/_component/_loading/Loading.tsx +0 -92
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.d.ts +0 -10
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.jsx +0 -82
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentApp.tsx +0 -137
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.d.ts +0 -10
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.jsx +0 -81
- package/dist/components/page/MyCase/_component/_pagination/PaginationComponentPage.tsx +0 -135
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.d.ts +0 -9
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.jsx +0 -65
- package/dist/components/page/MyCase/_component/_table/CaseTabSwiper.tsx +0 -79
- package/dist/components/page/MyCase/_component/_table/CaseTable.d.ts +0 -9
- package/dist/components/page/MyCase/_component/_table/CaseTable.jsx +0 -63
- package/dist/components/page/MyCase/_component/_table/CaseTable.tsx +0 -94
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.d.ts +0 -9
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.jsx +0 -11
- package/dist/components/page/MyCase/_component/_table/CaseTableMo.tsx +0 -28
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.d.ts +0 -5
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.jsx +0 -35
- package/dist/components/page/MyCase/_component/_table/CaseTableMoBox.tsx +0 -43
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.d.ts +0 -9
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.jsx +0 -11
- package/dist/components/page/MyCase/_component/_table/CaseTableMoPage.tsx +0 -28
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.d.ts +0 -6
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.js +0 -31
- package/dist/components/page/MyCase/_fetchers/addMyCaseQuestion.ts +0 -22
- package/dist/components/page/MyCase/_fetchers/getCase.d.ts +0 -5
- package/dist/components/page/MyCase/_fetchers/getCase.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getCase.ts +0 -21
- package/dist/components/page/MyCase/_fetchers/getCaseList.d.ts +0 -7
- package/dist/components/page/MyCase/_fetchers/getCaseList.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getCaseList.ts +0 -24
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.d.ts +0 -5
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getCourtFileList.ts +0 -21
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.d.ts +0 -7
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getMyCaseQuestion.ts +0 -24
- package/dist/components/page/MyCase/_fetchers/getMyFileList.d.ts +0 -5
- package/dist/components/page/MyCase/_fetchers/getMyFileList.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getMyFileList.ts +0 -21
- package/dist/components/page/MyCase/_fetchers/getTimeLine.d.ts +0 -5
- package/dist/components/page/MyCase/_fetchers/getTimeLine.js +0 -30
- package/dist/components/page/MyCase/_fetchers/getTimeLine.ts +0 -21
- package/dist/components/page/MyCase/_lib/catagoryMenuName.d.ts +0 -8
- package/dist/components/page/MyCase/_lib/catagoryMenuName.js +0 -8
- package/dist/components/page/MyCase/_lib/catagoryMenuName.ts +0 -11
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.d.ts +0 -7
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.js +0 -8
- package/dist/components/page/MyCase/_lib/catagoryMenuNameApp.ts +0 -11
- package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.d.ts +0 -15
- package/dist/components/page/MyCase/_lib/pagination/locale/ko_KR.js +0 -21
- package/dist/components/page/MyCase/_type/type.d.ts +0 -73
- package/dist/components/page/MyCase/_type/type.js +0 -1
- package/dist/components/page/MyCase/_type/type.ts +0 -81
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
import { useEffect, useState } from 'react';
|
|
2
|
-
import CaseLayout from './_layout/CaseLayout';
|
|
3
|
-
import SubColor1Button from './_button/SubColor1Button';
|
|
4
|
-
|
|
5
|
-
import CaseTable from './_table/CaseTable';
|
|
6
|
-
import { Case } from '../_type/type';
|
|
7
|
-
import EmptyTable from './_empty/EmptyTable';
|
|
8
|
-
import { useRouter, useSearchParams } from 'next/navigation';
|
|
9
|
-
import Loading from './_loading/Loading';
|
|
10
|
-
import { useGetCaseList } from '../_actions/action';
|
|
11
|
-
import CaseTabSwiper from './_table/CaseTabSwiper';
|
|
12
|
-
import CaseTableMo from './_table/CaseTableMo';
|
|
13
|
-
|
|
14
|
-
const CaseTap = ({
|
|
15
|
-
title,
|
|
16
|
-
type,
|
|
17
|
-
tap,
|
|
18
|
-
setTap
|
|
19
|
-
}: {
|
|
20
|
-
title: string;
|
|
21
|
-
type: string;
|
|
22
|
-
tap: string;
|
|
23
|
-
setTap: (tap: string) => void;
|
|
24
|
-
}) => {
|
|
25
|
-
return (
|
|
26
|
-
<button
|
|
27
|
-
onClick={() => {
|
|
28
|
-
if (setTap) {
|
|
29
|
-
setTap(type);
|
|
30
|
-
}
|
|
31
|
-
}}
|
|
32
|
-
className={`items-top sm-top:h-[40px] flex h-[29px] w-full justify-center border-b-[2px] border-solid transition-colors duration-300 lg:h-[45px] ${
|
|
33
|
-
tap === type ? 'border-black text-black' : 'border-grayScale4 text-grayScale4'
|
|
34
|
-
}`}
|
|
35
|
-
>
|
|
36
|
-
<p className={'body_large1_mo sm-top:body_large1_tb lg:body_large1'}>{title}</p>
|
|
37
|
-
</button>
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
const CaseContainer = () => {
|
|
42
|
-
const router = useRouter();
|
|
43
|
-
|
|
44
|
-
const searchParams = useSearchParams();
|
|
45
|
-
const { page, tap, subTap } = searchParams ? Object.fromEntries(searchParams.entries()) : {};
|
|
46
|
-
const tapState = tap ? (tap as string) : 'ongoing';
|
|
47
|
-
const subTapState = subTap ? (subTap as string) : tap ? (tap as string) : 'ongoing';
|
|
48
|
-
const [pageSize, setPageSize] = useState(6);
|
|
49
|
-
|
|
50
|
-
const [caseList, setCaseList] = useState<Case[]>([]);
|
|
51
|
-
const [totalLength, setTotalLength] = useState(0);
|
|
52
|
-
// const [isLoading, setIsLoading] = useState(true);
|
|
53
|
-
const pageNumber = page ? Number(page) : 1;
|
|
54
|
-
|
|
55
|
-
const handleOnChange = (pageNum: number) => {
|
|
56
|
-
router.push(`/mycase?page=${pageNum}&tap=${tap}&subTap=${subTap}`);
|
|
57
|
-
};
|
|
58
|
-
const handleOnTap = (tap: string) => {
|
|
59
|
-
router.push(`/mycase?page=${page}&tap=${tap}&subTap=${tap === 'ongoing' ? 'ongoing' : 'closed'}`);
|
|
60
|
-
};
|
|
61
|
-
const handleOnSubTap = (subTap: string) => {
|
|
62
|
-
router.push(`/mycase?page=1&tap=${tap}&subTap=${subTap}`);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
const { data, isLoading } = useGetCaseList({
|
|
66
|
-
tapState,
|
|
67
|
-
subTapState,
|
|
68
|
-
pageNumber,
|
|
69
|
-
pageSize
|
|
70
|
-
});
|
|
71
|
-
useEffect(() => {
|
|
72
|
-
const handleResize = () => {
|
|
73
|
-
setPageSize(window.innerWidth < 721 ? 3 : 6);
|
|
74
|
-
}; // 300ms 딜레이
|
|
75
|
-
|
|
76
|
-
window.addEventListener('resize', handleResize);
|
|
77
|
-
return () => window.removeEventListener('resize', handleResize);
|
|
78
|
-
}, []);
|
|
79
|
-
|
|
80
|
-
return (
|
|
81
|
-
<CaseLayout
|
|
82
|
-
outerClassName="mt-[230px] sm-top:mt-[310px] lg:mt-[294px] "
|
|
83
|
-
innerClassName={'py-[40px] sm-top:py-[52px] lg:py-[60px]'}
|
|
84
|
-
isMobilePadding={false}
|
|
85
|
-
>
|
|
86
|
-
<div className={''}>
|
|
87
|
-
<div className="sm-top:px-[50px] flex flex-row items-center px-[20px] 2sm:px-[40px] lg:px-[60px]">
|
|
88
|
-
<CaseTap title="진행중인 사건" type="ongoing" tap={tapState} setTap={handleOnTap} />
|
|
89
|
-
<CaseTap title="종결된 사건" type="closed" tap={tapState} setTap={handleOnTap} />
|
|
90
|
-
</div>
|
|
91
|
-
<div className={'sm-top:px-[50px] sm-top:py-[16px] py-[22px] lg:my-[20px] lg:px-[60px]'}>
|
|
92
|
-
{tapState === 'ongoing' ? (
|
|
93
|
-
<>
|
|
94
|
-
<div className="max-sm-top:hidden sm-top:gap-[12px] flex flex-row md2:gap-[20px] lg:gap-[28px] ">
|
|
95
|
-
<SubColor1Button
|
|
96
|
-
title="전체"
|
|
97
|
-
onClick={() => handleOnSubTap('ongoing')}
|
|
98
|
-
isSelected={subTapState === 'ongoing'}
|
|
99
|
-
/>
|
|
100
|
-
|
|
101
|
-
<SubColor1Button
|
|
102
|
-
title="사건접수"
|
|
103
|
-
onClick={() => handleOnSubTap('사건접수')}
|
|
104
|
-
isSelected={subTapState === '사건접수'}
|
|
105
|
-
/>
|
|
106
|
-
<SubColor1Button
|
|
107
|
-
title="사건검토"
|
|
108
|
-
onClick={() => handleOnSubTap('사건검토')}
|
|
109
|
-
isSelected={subTapState === '사건검토'}
|
|
110
|
-
/>
|
|
111
|
-
<SubColor1Button
|
|
112
|
-
title="변호사상담"
|
|
113
|
-
onClick={() => handleOnSubTap('변호사상담')}
|
|
114
|
-
isSelected={subTapState === '변호사상담'}
|
|
115
|
-
/>
|
|
116
|
-
|
|
117
|
-
<SubColor1Button
|
|
118
|
-
title="소송준비"
|
|
119
|
-
onClick={() => handleOnSubTap('소송준비')}
|
|
120
|
-
isSelected={subTapState === '소송준비'}
|
|
121
|
-
/>
|
|
122
|
-
<SubColor1Button
|
|
123
|
-
title="소송진행"
|
|
124
|
-
onClick={() => handleOnSubTap('소송진행')}
|
|
125
|
-
isSelected={subTapState === '소송진행'}
|
|
126
|
-
/>
|
|
127
|
-
</div>
|
|
128
|
-
<div className="sm-top:hidden">
|
|
129
|
-
<CaseTabSwiper
|
|
130
|
-
id="case-tab-swiper"
|
|
131
|
-
scrollClassName="max-[585px]:!block"
|
|
132
|
-
// handleOnSubTap={handleOnSubTap}
|
|
133
|
-
// subTapState={subTapState}
|
|
134
|
-
>
|
|
135
|
-
<SubColor1Button
|
|
136
|
-
title="전체"
|
|
137
|
-
onClick={() => handleOnSubTap('ongoing')}
|
|
138
|
-
isSelected={subTapState === 'ongoing'}
|
|
139
|
-
outerClassName="ml-[20px] 2sm:ml-[40px]"
|
|
140
|
-
/>
|
|
141
|
-
|
|
142
|
-
<SubColor1Button
|
|
143
|
-
title="사건접수"
|
|
144
|
-
onClick={() => handleOnSubTap('사건접수')}
|
|
145
|
-
isSelected={subTapState === '사건접수'}
|
|
146
|
-
/>
|
|
147
|
-
<SubColor1Button
|
|
148
|
-
title="사건검토"
|
|
149
|
-
onClick={() => handleOnSubTap('사건검토')}
|
|
150
|
-
isSelected={subTapState === '사건검토'}
|
|
151
|
-
/>
|
|
152
|
-
<SubColor1Button
|
|
153
|
-
title="변호사상담"
|
|
154
|
-
onClick={() => handleOnSubTap('변호사상담')}
|
|
155
|
-
isSelected={subTapState === '변호사상담'}
|
|
156
|
-
/>
|
|
157
|
-
|
|
158
|
-
<SubColor1Button
|
|
159
|
-
title="소송준비"
|
|
160
|
-
onClick={() => handleOnSubTap('소송준비')}
|
|
161
|
-
isSelected={subTapState === '소송준비'}
|
|
162
|
-
/>
|
|
163
|
-
<SubColor1Button
|
|
164
|
-
title="소송진행"
|
|
165
|
-
onClick={() => handleOnSubTap('소송진행')}
|
|
166
|
-
isSelected={subTapState === '소송진행'}
|
|
167
|
-
/>
|
|
168
|
-
</CaseTabSwiper>
|
|
169
|
-
</div>
|
|
170
|
-
</>
|
|
171
|
-
) : (
|
|
172
|
-
<>
|
|
173
|
-
<div className="max-sm-top:hidden sm-top:gap-[12px] flex flex-row md2:gap-[20px] lg:gap-[28px] ">
|
|
174
|
-
<SubColor1Button
|
|
175
|
-
title="전체"
|
|
176
|
-
onClick={() => handleOnSubTap('closed')}
|
|
177
|
-
isSelected={subTapState === 'closed'}
|
|
178
|
-
/>
|
|
179
|
-
<SubColor1Button
|
|
180
|
-
title="사건종결"
|
|
181
|
-
onClick={() => handleOnSubTap('사건종결')}
|
|
182
|
-
isSelected={subTapState === '사건종결'}
|
|
183
|
-
/>
|
|
184
|
-
<SubColor1Button
|
|
185
|
-
title="환불"
|
|
186
|
-
onClick={() => handleOnSubTap('환불')}
|
|
187
|
-
isSelected={subTapState === '환불'}
|
|
188
|
-
/>
|
|
189
|
-
</div>
|
|
190
|
-
<div className="sm-top:hidden">
|
|
191
|
-
<CaseTabSwiper
|
|
192
|
-
id="case-tab-swiper"
|
|
193
|
-
// handleOnSubTap={handleOnSubTap}
|
|
194
|
-
// subTapState={subTapState}
|
|
195
|
-
>
|
|
196
|
-
<SubColor1Button
|
|
197
|
-
title="전체"
|
|
198
|
-
onClick={() => handleOnSubTap('closed')}
|
|
199
|
-
isSelected={subTapState === 'closed'}
|
|
200
|
-
outerClassName="ml-[20px] 2sm:ml-[40px]"
|
|
201
|
-
/>
|
|
202
|
-
<SubColor1Button
|
|
203
|
-
title="사건종결"
|
|
204
|
-
onClick={() => handleOnSubTap('사건종결')}
|
|
205
|
-
isSelected={subTapState === '사건종결'}
|
|
206
|
-
/>
|
|
207
|
-
<SubColor1Button
|
|
208
|
-
title="환불"
|
|
209
|
-
onClick={() => handleOnSubTap('환불')}
|
|
210
|
-
isSelected={subTapState === '환불'}
|
|
211
|
-
/>
|
|
212
|
-
</CaseTabSwiper>
|
|
213
|
-
</div>
|
|
214
|
-
</>
|
|
215
|
-
)}
|
|
216
|
-
</div>
|
|
217
|
-
{isLoading ? (
|
|
218
|
-
<Loading />
|
|
219
|
-
) : data?.data?.list.length > 0 ? (
|
|
220
|
-
<>
|
|
221
|
-
<CaseTable
|
|
222
|
-
list={data?.data?.list}
|
|
223
|
-
totalLength={data?.data?.totalLength}
|
|
224
|
-
pageSize={pageSize}
|
|
225
|
-
pageNumber={pageNumber}
|
|
226
|
-
onChange={handleOnChange}
|
|
227
|
-
/>
|
|
228
|
-
<CaseTableMo
|
|
229
|
-
list={data?.data?.list}
|
|
230
|
-
totalLength={data?.data?.totalLength}
|
|
231
|
-
pageSize={pageSize}
|
|
232
|
-
pageNumber={pageNumber}
|
|
233
|
-
onChange={handleOnChange}
|
|
234
|
-
/>
|
|
235
|
-
</>
|
|
236
|
-
) : (
|
|
237
|
-
<EmptyTable tap={tapState} subTap={subTapState === 'ongoing' || subTapState === 'closed' ? 0 : 1} />
|
|
238
|
-
)}
|
|
239
|
-
</div>
|
|
240
|
-
</CaseLayout>
|
|
241
|
-
);
|
|
242
|
-
};
|
|
243
|
-
|
|
244
|
-
export default CaseContainer;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { usePathname, useRouter } from 'next/navigation';
|
|
3
|
-
import Image from 'next/image';
|
|
4
|
-
import Link from 'next/link';
|
|
5
|
-
import homeWhite from '../../../../../asset/images/myCase/home.svg';
|
|
6
|
-
import homeBlack from '../../../../../asset/images/myCase/home.webp';
|
|
7
|
-
import arrowWhite from '../../../../../asset/images/myCase/nav_arr.webp';
|
|
8
|
-
import arrowBlack from '../../../../../asset/images/myCase/arrow_2.webp';
|
|
9
|
-
import { catagoryMenuNameApp } from '../../_lib/catagoryMenuNameApp';
|
|
10
|
-
const CategoryMenuApp = (props) => {
|
|
11
|
-
const { isMargin = true, isWhite = false } = props;
|
|
12
|
-
const router = useRouter();
|
|
13
|
-
const pathname = usePathname();
|
|
14
|
-
const [menu, setMenu] = useState({ title: '', subTitle: '', address: '' });
|
|
15
|
-
//페이지 내부에서 쿼리 파라미터 없이 루트 경로로 돌아갈 때 새로고침
|
|
16
|
-
const reloadUrl = (url) => {
|
|
17
|
-
if (pathname === url) {
|
|
18
|
-
router.push(url);
|
|
19
|
-
router.refresh();
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
setMenu(catagoryMenuNameApp({ url: pathname }));
|
|
24
|
-
}, [pathname]);
|
|
25
|
-
const imagePath = isWhite ? homeWhite : homeBlack;
|
|
26
|
-
const arrowImage = isWhite ? arrowWhite : arrowBlack;
|
|
27
|
-
const textColor = isWhite ? 'text-[#fff]' : 'text-[#333333]';
|
|
28
|
-
return (<div className={(isMargin ? 'mb-[70px] mr-0 mt-8 lg:mb-[45px] lg:mt-[47px] ' : '') +
|
|
29
|
-
'relative z-10 flex flex-row font-normal leading-[1] tracking-[-0.32px] ' +
|
|
30
|
-
'text-[13px] xs:text-[14px] sm:text-[15px] lg:text-[16px] ' +
|
|
31
|
-
'min-w-[320px] items-center justify-end gap-[10px] lg:w-[100%]'}>
|
|
32
|
-
<Link href="/">
|
|
33
|
-
<Image src={imagePath} alt={'집'} width={15} height={15} className={'mb-[1px] h-auto sm:w-[17px] lg:w-[18px]'}/>
|
|
34
|
-
</Link>
|
|
35
|
-
<Image src={arrowImage} alt={'화살표_1'} width={8} height={13} className={'h-[13px] w-[8px]'}/>
|
|
36
|
-
{menu.title === menu.subTitle ? (<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
37
|
-
<div className={textColor}>{menu === null || menu === void 0 ? void 0 : menu.title}</div>
|
|
38
|
-
</Link>) : (<>
|
|
39
|
-
<div className={textColor}>{menu === null || menu === void 0 ? void 0 : menu.title}</div>
|
|
40
|
-
<Image src={arrowImage} alt={'화살표_2'} width={8} height={13} className={'h-[13px] w-[8px]'}/>
|
|
41
|
-
<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
42
|
-
<div className={textColor}>{menu === null || menu === void 0 ? void 0 : menu.subTitle}</div>
|
|
43
|
-
</Link>
|
|
44
|
-
</>)}
|
|
45
|
-
</div>);
|
|
46
|
-
};
|
|
47
|
-
export default CategoryMenuApp;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
|
|
3
|
-
import { usePathname, useRouter } from 'next/navigation';
|
|
4
|
-
import Image from 'next/image';
|
|
5
|
-
import Link from 'next/link';
|
|
6
|
-
import homeWhite from '../../../../../asset/images/myCase/home.svg';
|
|
7
|
-
import homeBlack from '../../../../../asset/images/myCase/home.webp';
|
|
8
|
-
import arrowWhite from '../../../../../asset/images/myCase/nav_arr.webp';
|
|
9
|
-
import arrowBlack from '../../../../../asset/images/myCase/arrow_2.webp';
|
|
10
|
-
import { catagoryMenuNameApp } from '../../_lib/catagoryMenuNameApp';
|
|
11
|
-
|
|
12
|
-
type CategoryMenuType = {
|
|
13
|
-
isMargin?: boolean;
|
|
14
|
-
isWhite?: boolean;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const CategoryMenuApp = (props: CategoryMenuType) => {
|
|
18
|
-
const { isMargin = true, isWhite = false } = props;
|
|
19
|
-
const router = useRouter();
|
|
20
|
-
const pathname = usePathname();
|
|
21
|
-
|
|
22
|
-
const [menu, setMenu] = useState({ title: '', subTitle: '', address: '' });
|
|
23
|
-
|
|
24
|
-
//페이지 내부에서 쿼리 파라미터 없이 루트 경로로 돌아갈 때 새로고침
|
|
25
|
-
const reloadUrl = (url: string) => {
|
|
26
|
-
if (pathname === url) {
|
|
27
|
-
router.push(url);
|
|
28
|
-
router.refresh();
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
setMenu(catagoryMenuNameApp({ url: pathname }));
|
|
33
|
-
}, [pathname]);
|
|
34
|
-
|
|
35
|
-
const imagePath = isWhite ? homeWhite : homeBlack;
|
|
36
|
-
|
|
37
|
-
const arrowImage = isWhite ? arrowWhite : arrowBlack;
|
|
38
|
-
|
|
39
|
-
const textColor = isWhite ? 'text-[#fff]' : 'text-[#333333]';
|
|
40
|
-
|
|
41
|
-
return (
|
|
42
|
-
<div
|
|
43
|
-
className={
|
|
44
|
-
(isMargin ? 'mb-[70px] mr-0 mt-8 lg:mb-[45px] lg:mt-[47px] ' : '') +
|
|
45
|
-
'relative z-10 flex flex-row font-normal leading-[1] tracking-[-0.32px] ' +
|
|
46
|
-
'text-[13px] xs:text-[14px] sm:text-[15px] lg:text-[16px] ' +
|
|
47
|
-
'min-w-[320px] items-center justify-end gap-[10px] lg:w-[100%]'
|
|
48
|
-
}
|
|
49
|
-
>
|
|
50
|
-
<Link href="/">
|
|
51
|
-
<Image
|
|
52
|
-
src={imagePath}
|
|
53
|
-
alt={'집'}
|
|
54
|
-
width={15}
|
|
55
|
-
height={15}
|
|
56
|
-
className={'mb-[1px] h-auto sm:w-[17px] lg:w-[18px]'}
|
|
57
|
-
/>
|
|
58
|
-
</Link>
|
|
59
|
-
<Image src={arrowImage} alt={'화살표_1'} width={8} height={13} className={'h-[13px] w-[8px]'} />
|
|
60
|
-
{menu.title === menu.subTitle ? (
|
|
61
|
-
<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
62
|
-
<div className={textColor}>{menu?.title}</div>
|
|
63
|
-
</Link>
|
|
64
|
-
) : (
|
|
65
|
-
<>
|
|
66
|
-
<div className={textColor}>{menu?.title}</div>
|
|
67
|
-
<Image src={arrowImage} alt={'화살표_2'} width={8} height={13} className={'h-[13px] w-[8px]'} />
|
|
68
|
-
<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
69
|
-
<div className={textColor}>{menu?.subTitle}</div>
|
|
70
|
-
</Link>
|
|
71
|
-
</>
|
|
72
|
-
)}
|
|
73
|
-
</div>
|
|
74
|
-
);
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export default CategoryMenuApp;
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { catagoryMenuName } from '../../_lib/catagoryMenuName';
|
|
3
|
-
import { useRouter } from 'next/router';
|
|
4
|
-
import Image from 'next/image';
|
|
5
|
-
import Link from 'next/link';
|
|
6
|
-
import homeWhite from '../../../../../asset/images/myCase/home.svg';
|
|
7
|
-
import homeBlack from '../../../../../asset/images/myCase/home.webp';
|
|
8
|
-
import arrowWhite from '../../../../../asset/images/myCase/nav_arr.webp';
|
|
9
|
-
import arrowBlack from '../../../../../asset/images/myCase/arrow_2.webp';
|
|
10
|
-
const CategoryMenu = (props) => {
|
|
11
|
-
const { t, isMargin = true, isWhite = false } = props;
|
|
12
|
-
const router = useRouter();
|
|
13
|
-
const [menu, setMenu] = useState({ title: '', subTitle: '', address: '' });
|
|
14
|
-
//페이지 내부에서 쿼리 파라미터 없이 루트 경로로 돌아갈 때 새로고침
|
|
15
|
-
const reloadUrl = (url) => {
|
|
16
|
-
if (router.pathname === url) {
|
|
17
|
-
router.push(url).then(() => {
|
|
18
|
-
router.reload();
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
setMenu(catagoryMenuName({ url: router.pathname, t }));
|
|
24
|
-
}, [router.pathname, t]);
|
|
25
|
-
const imagePath = isWhite ? homeWhite : homeBlack;
|
|
26
|
-
const arrowImage = isWhite ? arrowWhite : arrowBlack;
|
|
27
|
-
const textColor = isWhite ? 'text-[#fff]' : 'text-[#333333]';
|
|
28
|
-
return (<div className={(isMargin ? 'mb-[70px] mr-0 mt-8 lg:mb-[45px] lg:mt-[47px] ' : '') +
|
|
29
|
-
'relative z-10 flex flex-row font-normal leading-[1] tracking-[-0.32px] ' +
|
|
30
|
-
'text-[13px] xs:text-[14px] sm:text-[15px] lg:text-[16px] ' +
|
|
31
|
-
'min-w-[320px] items-center justify-end gap-[10px] lg:w-[100%]'}>
|
|
32
|
-
<Link href="/">
|
|
33
|
-
<Image src={imagePath} alt={'집'} width={15} height={15} className={'mb-[1px] h-auto sm:w-[17px] lg:w-[18px]'}/>
|
|
34
|
-
</Link>
|
|
35
|
-
<Image src={arrowImage} alt={'화살표_1'} width={8} height={13} className={'h-[13px] w-[8px]'}/>
|
|
36
|
-
{menu.title === menu.subTitle ? (<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
37
|
-
<div className={textColor}>{menu === null || menu === void 0 ? void 0 : menu.title}</div>
|
|
38
|
-
</Link>) : (<>
|
|
39
|
-
<div className={textColor}>{menu === null || menu === void 0 ? void 0 : menu.title}</div>
|
|
40
|
-
<Image src={arrowImage} alt={'화살표_2'} width={8} height={13} className={'h-[13px] w-[8px]'}/>
|
|
41
|
-
<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
42
|
-
<div className={textColor}>{menu === null || menu === void 0 ? void 0 : menu.subTitle}</div>
|
|
43
|
-
</Link>
|
|
44
|
-
</>)}
|
|
45
|
-
</div>);
|
|
46
|
-
};
|
|
47
|
-
export default CategoryMenu;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { catagoryMenuName } from '../../_lib/catagoryMenuName';
|
|
3
|
-
import { useRouter } from 'next/router';
|
|
4
|
-
import Image from 'next/image';
|
|
5
|
-
import Link from 'next/link';
|
|
6
|
-
import homeWhite from '../../../../../asset/images/myCase/home.svg';
|
|
7
|
-
import homeBlack from '../../../../../asset/images/myCase/home.webp';
|
|
8
|
-
import arrowWhite from '../../../../../asset/images/myCase/nav_arr.webp';
|
|
9
|
-
import arrowBlack from '../../../../../asset/images/myCase/arrow_2.webp';
|
|
10
|
-
|
|
11
|
-
type CategoryMenuType = {
|
|
12
|
-
t: (key: string) => string;
|
|
13
|
-
isMargin?: boolean;
|
|
14
|
-
isWhite?: boolean;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
const CategoryMenu = (props: CategoryMenuType) => {
|
|
18
|
-
const { t, isMargin = true, isWhite = false } = props;
|
|
19
|
-
const router = useRouter();
|
|
20
|
-
|
|
21
|
-
const [menu, setMenu] = useState({ title: '', subTitle: '', address: '' });
|
|
22
|
-
|
|
23
|
-
//페이지 내부에서 쿼리 파라미터 없이 루트 경로로 돌아갈 때 새로고침
|
|
24
|
-
const reloadUrl = (url: string) => {
|
|
25
|
-
if (router.pathname === url) {
|
|
26
|
-
router.push(url).then(() => {
|
|
27
|
-
router.reload();
|
|
28
|
-
});
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
useEffect(() => {
|
|
32
|
-
setMenu(catagoryMenuName({ url: router.pathname, t }));
|
|
33
|
-
}, [router.pathname, t]);
|
|
34
|
-
|
|
35
|
-
const imagePath = isWhite ? homeWhite : homeBlack;
|
|
36
|
-
|
|
37
|
-
const arrowImage = isWhite ? arrowWhite : arrowBlack;
|
|
38
|
-
|
|
39
|
-
const textColor = isWhite ? 'text-[#fff]' : 'text-[#333333]';
|
|
40
|
-
|
|
41
|
-
return (
|
|
42
|
-
<div
|
|
43
|
-
className={
|
|
44
|
-
(isMargin ? 'mb-[70px] mr-0 mt-8 lg:mb-[45px] lg:mt-[47px] ' : '') +
|
|
45
|
-
'relative z-10 flex flex-row font-normal leading-[1] tracking-[-0.32px] ' +
|
|
46
|
-
'text-[13px] xs:text-[14px] sm:text-[15px] lg:text-[16px] ' +
|
|
47
|
-
'min-w-[320px] items-center justify-end gap-[10px] lg:w-[100%]'
|
|
48
|
-
}
|
|
49
|
-
>
|
|
50
|
-
<Link href="/">
|
|
51
|
-
<Image
|
|
52
|
-
src={imagePath}
|
|
53
|
-
alt={'집'}
|
|
54
|
-
width={15}
|
|
55
|
-
height={15}
|
|
56
|
-
className={'mb-[1px] h-auto sm:w-[17px] lg:w-[18px]'}
|
|
57
|
-
/>
|
|
58
|
-
</Link>
|
|
59
|
-
<Image src={arrowImage} alt={'화살표_1'} width={8} height={13} className={'h-[13px] w-[8px]'} />
|
|
60
|
-
{menu.title === menu.subTitle ? (
|
|
61
|
-
<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
62
|
-
<div className={textColor}>{menu?.title}</div>
|
|
63
|
-
</Link>
|
|
64
|
-
) : (
|
|
65
|
-
<>
|
|
66
|
-
<div className={textColor}>{menu?.title}</div>
|
|
67
|
-
<Image src={arrowImage} alt={'화살표_2'} width={8} height={13} className={'h-[13px] w-[8px]'} />
|
|
68
|
-
<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
69
|
-
<div className={textColor}>{menu?.subTitle}</div>
|
|
70
|
-
</Link>
|
|
71
|
-
</>
|
|
72
|
-
)}
|
|
73
|
-
</div>
|
|
74
|
-
);
|
|
75
|
-
};
|
|
76
|
-
|
|
77
|
-
export default CategoryMenu;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export declare const buttonStyle: {
|
|
2
|
-
사건접수: string;
|
|
3
|
-
사건검토: string;
|
|
4
|
-
변호사상담: string;
|
|
5
|
-
소송준비: string;
|
|
6
|
-
소송진행: string;
|
|
7
|
-
보류: string;
|
|
8
|
-
사건종결: string;
|
|
9
|
-
환불: string;
|
|
10
|
-
};
|
|
11
|
-
declare const Badge: ({ title }: {
|
|
12
|
-
title: keyof typeof buttonStyle;
|
|
13
|
-
}) => import("react").JSX.Element;
|
|
14
|
-
export default Badge;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export const buttonStyle = {
|
|
2
|
-
사건접수: 'bg-[#FFDBDB] text-[#5F1A18]',
|
|
3
|
-
사건검토: 'bg-[#F1DCFF] text-[#511396]',
|
|
4
|
-
변호사상담: 'bg-[#AEEDE2] text-[#1D4A45]',
|
|
5
|
-
소송준비: 'bg-[#DED9FF] text-[#1A30AA]',
|
|
6
|
-
소송진행: 'bg-[#C6F5CA] text-[#315B32]',
|
|
7
|
-
보류: 'bg-[#FFF3DB] text-[#644F16]',
|
|
8
|
-
사건종결: 'bg-[#3D3D3D] text-[#FFFFFF]',
|
|
9
|
-
환불: 'bg-[#DBDBDB] text-[#000000]'
|
|
10
|
-
};
|
|
11
|
-
const Badge = ({ title }) => {
|
|
12
|
-
return (<div className={`sm-top:h-[39px] sm-top:px-[16px] sm-top:label_large2_tb flex h-[30px] flex-row items-center justify-center rounded-[20px] px-[12px] lg:h-[41px] lg:px-[20px] ${buttonStyle[title]} w-fit`}>
|
|
13
|
-
<p className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 `}>{title}</p>
|
|
14
|
-
</div>);
|
|
15
|
-
};
|
|
16
|
-
export default Badge;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
export const buttonStyle = {
|
|
2
|
-
사건접수: 'bg-[#FFDBDB] text-[#5F1A18]',
|
|
3
|
-
사건검토: 'bg-[#F1DCFF] text-[#511396]',
|
|
4
|
-
변호사상담: 'bg-[#AEEDE2] text-[#1D4A45]',
|
|
5
|
-
소송준비: 'bg-[#DED9FF] text-[#1A30AA]',
|
|
6
|
-
소송진행: 'bg-[#C6F5CA] text-[#315B32]',
|
|
7
|
-
보류: 'bg-[#FFF3DB] text-[#644F16]',
|
|
8
|
-
사건종결: 'bg-[#3D3D3D] text-[#FFFFFF]',
|
|
9
|
-
환불: 'bg-[#DBDBDB] text-[#000000]'
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
const Badge = ({ title }: { title: keyof typeof buttonStyle }) => {
|
|
13
|
-
return (
|
|
14
|
-
<div
|
|
15
|
-
className={`sm-top:h-[39px] sm-top:px-[16px] sm-top:label_large2_tb flex h-[30px] flex-row items-center justify-center rounded-[20px] px-[12px] lg:h-[41px] lg:px-[20px] ${buttonStyle[title]} w-fit`}
|
|
16
|
-
>
|
|
17
|
-
<p className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 `}>{title}</p>
|
|
18
|
-
</div>
|
|
19
|
-
);
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export default Badge;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { twMerge } from 'tailwind-merge';
|
|
2
|
-
const SubColor1Button = ({ title, onClick, isSelected, outerClassName }) => {
|
|
3
|
-
return (<button className={twMerge(`swiper-slide max-sm-top:flex-shrink-0 sm-top:h-[39px] sm-top:px-[10px] flex h-[34px] w-fit flex-row items-center justify-center rounded-[24px] px-[16px] transition-colors duration-300 md2:px-[16px] lg:h-[49px] lg:px-[12px] xl:px-[20px] ${isSelected ? 'bg-subColor01 text-white' : 'bg-white text-black'}`, outerClassName)} onClick={onClick}>
|
|
4
|
-
<p className={'label_large1_mo sm-top:label_large1_tb sm-top:text-[16px] lg:label_large1 md2:text-[18px] lg:text-[18px] xl:text-[20px] '}>
|
|
5
|
-
{title}
|
|
6
|
-
</p>
|
|
7
|
-
</button>);
|
|
8
|
-
};
|
|
9
|
-
export default SubColor1Button;
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import { twMerge } from 'tailwind-merge';
|
|
2
|
-
|
|
3
|
-
const SubColor1Button = ({
|
|
4
|
-
title,
|
|
5
|
-
onClick,
|
|
6
|
-
isSelected,
|
|
7
|
-
outerClassName
|
|
8
|
-
}: {
|
|
9
|
-
title: string;
|
|
10
|
-
onClick: () => void;
|
|
11
|
-
isSelected: boolean;
|
|
12
|
-
outerClassName?: string;
|
|
13
|
-
}) => {
|
|
14
|
-
return (
|
|
15
|
-
<button
|
|
16
|
-
className={twMerge(
|
|
17
|
-
`swiper-slide max-sm-top:flex-shrink-0 sm-top:h-[39px] sm-top:px-[10px] flex h-[34px] w-fit flex-row items-center justify-center rounded-[24px] px-[16px] transition-colors duration-300 md2:px-[16px] lg:h-[49px] lg:px-[12px] xl:px-[20px] ${isSelected ? 'bg-subColor01 text-white' : 'bg-white text-black'}`,
|
|
18
|
-
outerClassName
|
|
19
|
-
)}
|
|
20
|
-
onClick={onClick}
|
|
21
|
-
>
|
|
22
|
-
<p
|
|
23
|
-
className={
|
|
24
|
-
'label_large1_mo sm-top:label_large1_tb sm-top:text-[16px] lg:label_large1 md2:text-[18px] lg:text-[18px] xl:text-[20px] '
|
|
25
|
-
}
|
|
26
|
-
>
|
|
27
|
-
{title}
|
|
28
|
-
</p>
|
|
29
|
-
</button>
|
|
30
|
-
);
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
export default SubColor1Button;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { twMerge } from 'tailwind-merge';
|
|
2
|
-
const SubMenuButton = ({ onClick, title, isSelected, outerClassName }) => {
|
|
3
|
-
return (<button className={twMerge(`swiper-slide sm-top:h-[39px] sm-top:px-[16px] sm-top:body_large2_tb lg:body_medium2 flex h-[34px] w-fit items-center justify-center rounded-[20px] px-[16px] transition-all duration-300 lg:h-[41px] lg:px-[20px] ${isSelected ? 'bg-grayScale1' : 'bg-transparent'}`, outerClassName)} onClick={onClick}>
|
|
4
|
-
<p className={`label_large2_mo sm-top:label_large2_tb lg:label_large2 ${isSelected ? 'text-white' : 'text-black'}`}>
|
|
5
|
-
{title}
|
|
6
|
-
</p>
|
|
7
|
-
</button>);
|
|
8
|
-
};
|
|
9
|
-
export default SubMenuButton;
|