Skip to content

Commit

Permalink
chore :: Link tag로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
dutexion committed Aug 5, 2024
1 parent 167108a commit f726c96
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/components/common/header/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import styled from '@emotion/styled';
import LogoImg from '@/assets/Logo.svg';
import { useEffect, useState } from 'react';
import { Button } from '@/components/common/Button';
import { useLocation, useNavigate } from 'react-router-dom';
import { Link, useLocation, useNavigate } from 'react-router-dom';
import { css } from '@emotion/react';
import { theme } from '@/style/theme';
import { Cookie } from '@/utils/cookie';
Expand Down Expand Up @@ -62,15 +62,8 @@ export const Header = () => {
</>
) : (
<>
<LeftSide2
onClick={() => {
if (_pathname === '' || _pathname === 'login') {
navigate('/');
} else {
navigate('/team');
}
}}
>
<LeftSide2>
<Link to={_pathname === '' || _pathname === 'login' ? '/' : '/team'}></Link>
<img src={LogoImg} />
<span>Xquare Infra</span>
</LeftSide2>
Expand Down

0 comments on commit f726c96

Please sign in to comment.