Skip to content

Commit

Permalink
deleted unnecessary functions
Browse files Browse the repository at this point in the history
  • Loading branch information
Chelakhovl committed Dec 17, 2024
1 parent 6a711e3 commit 67c376a
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions FrontEnd/src/pages/ProfileList/ProfileListPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,14 +165,6 @@ export default function ProfileListPage({ isAuthorized, isSaved }) {
updateQueryParams(page);
};

const handleActiveTab = (activeTab) => {
setActiveTab(activeTab);
};

const handleActiveBtn = (activeBtn) => {
setActiveBtn(activeBtn);
};

return (
<div className={css.page}>
{error && error.response.status !==401 ? (
Expand All @@ -193,7 +185,7 @@ export default function ProfileListPage({ isAuthorized, isSaved }) {
className={activeTab === item.key ?
css['company-list__tabs--element--active'] :
css['company-list__tabs--element']}
onClick={() => (handleFilters(item.value, activity), handleActiveTab(item.key))}
onClick={() => (handleFilters(item.value, activity))}
>
{item.title === 'Усі підприємства' ? linkText : item.title}
</span>
Expand All @@ -213,7 +205,7 @@ export default function ProfileListPage({ isAuthorized, isSaved }) {
className={activeBtn === item.key ?
css['company-list__btns--element--active'] :
css['company-list__btns--element']}
onClick={() => (handleFilters(companyType, item.value), handleActiveBtn(item.key))}
onClick={() => (handleFilters(companyType, item.value))}
>
{item.title}
</button>
Expand Down

0 comments on commit 67c376a

Please sign in to comment.