Skip to content

Commit

Permalink
feat: Added a button for navigating to the partners page in PartnersB…
Browse files Browse the repository at this point in the history
…lockMain component
  • Loading branch information
DDeviak committed Sep 13, 2024
1 parent 336500d commit dc8bf31
Showing 1 changed file with 13 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,19 @@ import './PartnersBlockMain.styles.scss';
import PartnersBlock from '@/features/AdditionalPages/PartnersPage/PartnersBlock/PartnersBlock.component';

import Heading from '../Heading/Heading.component';
import { useNavigate } from 'react-router-dom';

const PartnersBlockComponent = () => (
<div className="partnersBlockMainContainer">
<Heading blockName="Наші партнери" buttonName={undefined} setActionOnClick={undefined} />
<PartnersBlock onlyKeyPartners />
</div>
);
const PartnersBlockComponent = () => {
const navigate = useNavigate();
const handleButtonClick = () => {
navigate('../partners-page');
};
return (
<div className="partnersBlockMainContainer">
<Heading blockName="Наші партнери" buttonName={"Всі партнери"} setActionOnClick={handleButtonClick} />
<PartnersBlock onlyKeyPartners />
</div>
)
};

export default PartnersBlockComponent;

0 comments on commit dc8bf31

Please sign in to comment.