@daeryun/dr_components 1.0.53 → 1.0.54

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.
@@ -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
- <div className={isWhiteText ? 'text-white' : 'text-[#58595B]'}>{menu.title}</div>
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
- <div className={isWhiteText ? 'text-white' : 'text-[#58595B]'}>{menu.title}</div>
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
  />