added reviews
This commit is contained in:
@@ -15,6 +15,7 @@ export default function Sidebar({
|
||||
onLogout,
|
||||
onLoginClick,
|
||||
onRulesClick,
|
||||
onReviewsClick,
|
||||
}) {
|
||||
const navigate = useNavigate();
|
||||
return (
|
||||
@@ -63,6 +64,11 @@ export default function Sidebar({
|
||||
onClose();
|
||||
return;
|
||||
}
|
||||
if (label === "Отзывы") {
|
||||
onReviewsClick?.();
|
||||
onClose();
|
||||
return;
|
||||
}
|
||||
onNavClick(label);
|
||||
onClose();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user