@daeryun/dr_components 0.4.55 → 0.4.57
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/cjs/tsconfig-cjs.tsbuildinfo +1 -1
- package/dist/components/common/integrate/index.d.ts +1 -1
- package/dist/components/page/Integrate/Broadcast.d.ts +1 -0
- package/dist/components/page/Integrate/Broadcast.jsx +81 -48
- package/dist/components/page/Integrate/Broadcast.tsx +153 -114
- package/dist/components/page/Integrate/Field.d.ts +1 -0
- package/dist/components/page/Integrate/Field.jsx +40 -16
- package/dist/components/page/Integrate/Field.tsx +66 -32
- package/dist/components/page/Integrate/LawInfo.d.ts +1 -0
- package/dist/components/page/Integrate/LawInfo.jsx +37 -4
- package/dist/components/page/Integrate/LawInfo.tsx +51 -5
- package/dist/components/page/Integrate/Lawyer.d.ts +1 -0
- package/dist/components/page/Integrate/Lawyer.jsx +38 -14
- package/dist/components/page/Integrate/Lawyer.tsx +62 -30
- package/dist/components/page/Integrate/Map.d.ts +1 -0
- package/dist/components/page/Integrate/Map.jsx +45 -31
- package/dist/components/page/Integrate/Map.tsx +57 -42
- package/dist/components/page/Integrate/Reply.d.ts +1 -0
- package/dist/components/page/Integrate/Reply.jsx +55 -22
- package/dist/components/page/Integrate/Reply.tsx +102 -60
- package/dist/components/page/Integrate/SearchData.jsx +29 -12
- package/dist/components/page/Integrate/SearchData.tsx +30 -5
- package/dist/components/page/Integrate/Success.d.ts +1 -0
- package/dist/components/page/Integrate/Success.jsx +61 -28
- package/dist/components/page/Integrate/Success.tsx +106 -62
- package/dist/components/page/Integrate/Title.jsx +7 -3
- package/dist/components/page/Integrate/Title.tsx +8 -3
- package/dist/components/page/Integrate/ViewMore.d.ts +1 -1
- package/dist/components/page/Integrate/ViewMore.jsx +13 -13
- package/dist/components/page/Integrate/ViewMore.tsx +38 -41
- package/dist/components/page/MyCase/_fetchers/addMyFileUpload.js +2 -2
- package/dist/components/page/MyCase/_fetchers/addMyFileUpload.ts +2 -2
- package/dist/styles/globals.css +182 -177
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4,7 +4,7 @@ import Loader from '../../Loader/Loader';
|
|
|
4
4
|
|
|
5
5
|
export const ViewMore = (props: {
|
|
6
6
|
func: () => void;
|
|
7
|
-
loading
|
|
7
|
+
loading?: boolean;
|
|
8
8
|
flag: boolean;
|
|
9
9
|
totalPage?: number;
|
|
10
10
|
nowPage?: number;
|
|
@@ -12,55 +12,52 @@ export const ViewMore = (props: {
|
|
|
12
12
|
}) => {
|
|
13
13
|
const { func, loading, flag, totalPage, nowPage, label = '' } = props;
|
|
14
14
|
|
|
15
|
-
const isNotLastPage = nowPage && totalPage ? nowPage - 1 !== totalPage : false;
|
|
16
|
-
|
|
17
15
|
const labelTxt = `${label} 글 더보기${nowPage && totalPage ? ` ${totalPage}페이지 중 ${nowPage - 1}페이지` : ''}`;
|
|
18
16
|
|
|
19
17
|
return (
|
|
20
18
|
<>
|
|
21
|
-
{
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
onKeyDown={(e: any) => {
|
|
33
|
-
if (e.key === 'Enter') {
|
|
34
|
-
func();
|
|
19
|
+
{flag ? (
|
|
20
|
+
loading ? (
|
|
21
|
+
<b className={'mb-20 text-center'}>
|
|
22
|
+
<Loader />
|
|
23
|
+
</b>
|
|
24
|
+
) : (
|
|
25
|
+
<button
|
|
26
|
+
aria-label={labelTxt}
|
|
27
|
+
className={
|
|
28
|
+
(nowPage && totalPage ? ' px-5 ' : ' px-10 ') +
|
|
29
|
+
'relative m-auto mb-20 mt-20 flex w-[10em] cursor-pointer items-center justify-between border-[1px] border-solid border-[#707070] py-4 text-[#666666] '
|
|
35
30
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
31
|
+
onKeyDown={(e: any) => {
|
|
32
|
+
if (e.key === 'Enter') {
|
|
33
|
+
func();
|
|
34
|
+
}
|
|
35
|
+
}}
|
|
36
|
+
onClick={() => {
|
|
37
|
+
func();
|
|
38
|
+
}}
|
|
39
|
+
>
|
|
40
|
+
<p className={'pt-[2px] leading-[15px] text-[#666666] '}>
|
|
41
|
+
더보기
|
|
42
|
+
{nowPage && totalPage ? (
|
|
43
|
+
<span>
|
|
44
|
+
{nowPage - 1}/{totalPage}{' '}
|
|
45
|
+
</span>
|
|
46
|
+
) : (
|
|
47
|
+
<></>
|
|
48
|
+
)}
|
|
49
|
+
</p>
|
|
50
|
+
|
|
52
51
|
<Image
|
|
53
52
|
src={'/images/plus_g.webp'}
|
|
54
53
|
alt={''}
|
|
55
|
-
width={
|
|
56
|
-
height={
|
|
57
|
-
className={'
|
|
54
|
+
width={44}
|
|
55
|
+
height={44}
|
|
56
|
+
className={'h-auto w-[18px] max-lg:w-[16px] max-sm:w-[15px] max-2xs:w-[13px]'}
|
|
58
57
|
/>
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
</button>
|
|
63
|
-
)}
|
|
58
|
+
</button>
|
|
59
|
+
)
|
|
60
|
+
) : null}
|
|
64
61
|
</>
|
|
65
62
|
);
|
|
66
63
|
};
|
|
@@ -24,8 +24,8 @@ const addMyFileUpload = (_a) => __awaiter(void 0, [_a], void 0, function* ({ id,
|
|
|
24
24
|
// if (!response.ok) {
|
|
25
25
|
// throw new Error('Network response was not ok');
|
|
26
26
|
// }
|
|
27
|
-
|
|
28
|
-
return
|
|
27
|
+
const data = yield response.json();
|
|
28
|
+
return data;
|
|
29
29
|
}
|
|
30
30
|
catch (error) {
|
|
31
31
|
console.error('Failed to fetch case:', error);
|
|
@@ -17,8 +17,8 @@ const addMyFileUpload = async ({ id, file }: { id: string; file: File }) => {
|
|
|
17
17
|
// if (!response.ok) {
|
|
18
18
|
// throw new Error('Network response was not ok');
|
|
19
19
|
// }
|
|
20
|
-
|
|
21
|
-
return
|
|
20
|
+
const data = await response.json();
|
|
21
|
+
return data;
|
|
22
22
|
} catch (error) {
|
|
23
23
|
console.error('Failed to fetch case:', error);
|
|
24
24
|
throw error;
|