@daeryun/dr_components 1.0.53 → 1.0.55
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/CategoryMenu/CategoryMenuForPage.jsx +3 -1
- package/dist/components/CategoryMenu/CategoryMenuForPage.tsx +7 -1
- package/dist/components/common/types/index.d.ts +2 -2
- package/dist/components/common/types/index.ts +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -33,7 +33,9 @@ const CategoryMenuForPage = ({ className = '', isWhiteText = false }) => {
|
|
|
33
33
|
</Link>
|
|
34
34
|
</>) : (<>
|
|
35
35
|
<IconArrow className={`${isWhiteText ? ' stroke-white' : ' stroke-[#58595B]'} aspect-square w-[20px] scale-[-1] max-md:w-[18px] max-3xs:w-[16px]`}/>
|
|
36
|
-
<
|
|
36
|
+
{pathname.includes('/strength/') ? (<Link href={`/strength`} onClick={() => reloadUrl(`/strength`)}>
|
|
37
|
+
<div className={isWhiteText ? 'text-white' : 'text-[#58595B]'}>{menu.title}</div>
|
|
38
|
+
</Link>) : (<div className={isWhiteText ? 'text-white' : 'text-[#58595B]'}>{menu.title}</div>)}
|
|
37
39
|
<IconArrow className={`${isWhiteText ? ' stroke-white' : ' stroke-[#58595B]'} aspect-square w-[20px] scale-[-1] max-md:w-[18px] max-3xs:w-[16px]`}/>
|
|
38
40
|
<Link href={`/${menu.address}`} onClick={() => reloadUrl(`/${menu.address}`)}>
|
|
39
41
|
<div className={isWhiteText ? 'text-white' : 'text-[#58595B]'}>{menu.subTitle}</div>
|
|
@@ -65,7 +65,13 @@ const CategoryMenuForPage = ({ className = '', isWhiteText = false }: CategoryMe
|
|
|
65
65
|
<IconArrow
|
|
66
66
|
className={`${isWhiteText ? ' stroke-white' : ' stroke-[#58595B]'} aspect-square w-[20px] scale-[-1] max-md:w-[18px] max-3xs:w-[16px]`}
|
|
67
67
|
/>
|
|
68
|
-
|
|
68
|
+
{pathname.includes('/strength/') ? (
|
|
69
|
+
<Link href={`/strength`} onClick={() => reloadUrl(`/strength`)}>
|
|
70
|
+
<div className={isWhiteText ? 'text-white' : 'text-[#58595B]'}>{menu.title}</div>
|
|
71
|
+
</Link>
|
|
72
|
+
) : (
|
|
73
|
+
<div className={isWhiteText ? 'text-white' : 'text-[#58595B]'}>{menu.title}</div>
|
|
74
|
+
)}
|
|
69
75
|
<IconArrow
|
|
70
76
|
className={`${isWhiteText ? ' stroke-white' : ' stroke-[#58595B]'} aspect-square w-[20px] scale-[-1] max-md:w-[18px] max-3xs:w-[16px]`}
|
|
71
77
|
/>
|
|
@@ -51,11 +51,11 @@ export interface ICategory {
|
|
|
51
51
|
}
|
|
52
52
|
export interface IRoute {
|
|
53
53
|
path: string;
|
|
54
|
-
name:
|
|
54
|
+
name: React.ReactNode;
|
|
55
55
|
newTab?: boolean;
|
|
56
56
|
routes: {
|
|
57
57
|
path: string;
|
|
58
|
-
name:
|
|
58
|
+
name: React.ReactNode;
|
|
59
59
|
newTab?: boolean;
|
|
60
60
|
}[];
|
|
61
61
|
}
|
|
@@ -53,7 +53,7 @@ export interface ICategory {
|
|
|
53
53
|
|
|
54
54
|
export interface IRoute {
|
|
55
55
|
path: string;
|
|
56
|
-
name:
|
|
56
|
+
name: React.ReactNode;
|
|
57
57
|
newTab?: boolean;
|
|
58
|
-
routes: { path: string; name:
|
|
58
|
+
routes: { path: string; name: React.ReactNode; newTab?: boolean }[];
|
|
59
59
|
}
|