Skip to content

Commit 6117f90

Browse files
authored
Исправил ошибки консоли связанные с вложенными ссылками (#337)
1 parent 42d2e4b commit 6117f90

File tree

4 files changed

+13
-8
lines changed

4 files changed

+13
-8
lines changed

src/components/layout/header/PopoverContent.jsx

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,13 @@ const PopoverContent = () => {
5050
</StyledMenuList>
5151
<Divider className="m-0" />
5252
</StyledMenuProfile>
53-
<Link to="/" className="d-none d-md-block">
54-
<Typography.Link onClick={handleClick}>Выйти</Typography.Link>
53+
<Link
54+
to="/"
55+
className="d-none d-md-block"
56+
component={Typography.Link}
57+
onClick={handleClick}
58+
>
59+
Выйти
5560
</Link>
5661
</div>
5762
</div>

src/components/layout/header/header-menu/LinkToDeleted.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export const LinkToDeleted = () => {
1010
if (!REACT_APP_FEATURE_DELETE_QUESTION || !token) return null;
1111

1212
return (
13-
<Link to="/?deletedOnly=true" className="d-none d-md-block">
14-
<Typography.Link>Корзина</Typography.Link>
13+
<Link to="/?deletedOnly=true" className="d-none d-md-block" component={Typography.Link}>
14+
Корзина
1515
</Link>
1616
);
1717
};

src/components/layout/header/header-menu/LinkToFavorites.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ export const LinkToFavorites = () => {
1010
if (!REACT_APP_FEATURE_FAVORITES || !token) return null;
1111

1212
return (
13-
<Link to="/?favoritesOnly=true" className="d-none d-md-block">
14-
<Typography.Link>Сохраненные</Typography.Link>
13+
<Link to="/?favoritesOnly=true" className="d-none d-md-block" component={Typography.Link}>
14+
Сохраненные
1515
</Link>
1616
);
1717
};

src/components/layout/header/header-menu/LinkToProfilePage.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ import { Typography } from 'antd';
44

55
const LinkToProfilePage = () => {
66
return (
7-
<Link to="/profile">
8-
<Typography.Link>Профиль</Typography.Link>
7+
<Link to="/profile" component={Typography.Link}>
8+
Профиль
99
</Link>
1010
);
1111
};

0 commit comments

Comments
 (0)