Skip to content

Commit

Permalink
refacotr: a링크로 대체
Browse files Browse the repository at this point in the history
  • Loading branch information
brgndyy committed Oct 24, 2024
1 parent aac3ca5 commit f87947c
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ export default function DashboardPageLayout({ children }: PropsWithChildren) {
const { data: userInfo } = useUserInfo();
const currentPathText = PATH_INFO.find((item) => item.name === path);

const URL =
process.env.NODE_ENV === 'development'
? 'https://dev.devel-up.co.kr'
: 'https://devel-up.co.kr';

return (
<S.Container>
<S.ProfileAndCurrentPathWrapper>
Expand All @@ -78,9 +83,9 @@ export default function DashboardPageLayout({ children }: PropsWithChildren) {
return (
<S.LinkWrapper key={index}>
<S.Circle $isSelected={path.name === location.pathname} />
<Link to={path.name}>
<a href={`${URL}${path.name}`}>
<S.Path $isSelected={path.name === location.pathname}>{path.text}</S.Path>
</Link>
</a>
</S.LinkWrapper>
);
})}
Expand Down

0 comments on commit f87947c

Please sign in to comment.