Skip to content

Commit

Permalink
fix(#1137): fix wrong classNames in the routing-chats component
Browse files Browse the repository at this point in the history
  • Loading branch information
d1mon1k committed Aug 30, 2022
1 parent 5a974bb commit 4440063
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/components/routing-chats/routing-chats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,21 +35,21 @@ export const RoutingChats = () => {
<div className={`${BLOCK_NAME}__middle-group`}>
<NavLink
className={({ isActive }) =>
classnames(`${BLOCK_NAME}__link`, { [`${BLOCK_NAME}__link--active`]: isActive }, { [`${BLOCK_NAME}__link--grouped`]: !isActive })
classnames(`${BLOCK_NAME}__link`, `${BLOCK_NAME}__link--grouped`, { [`${BLOCK_NAME}__link--active`]: isActive })
}
to={CONTACTS_PATH}>
<ContactSvg />
</NavLink>
<NavLink
className={({ isActive }) =>
classnames(`${BLOCK_NAME}__link`, { [`${BLOCK_NAME}__link--active`]: isActive }, { [`${BLOCK_NAME}__link--grouped`]: !isActive })
classnames(`${BLOCK_NAME}__link`, `${BLOCK_NAME}__link--grouped`, { [`${BLOCK_NAME}__link--active`]: isActive })
}
to={`${INSTANT_MESSAGING_PATH}${selectedChatId ? `/${selectedChatId}` : ''}`}>
<ChatsSvg />
</NavLink>
<NavLink
className={({ isActive }) =>
classnames(`${BLOCK_NAME}__link`, { [`${BLOCK_NAME}__link--active`]: isActive }, { [`${BLOCK_NAME}__link--grouped`]: !isActive })
classnames(`${BLOCK_NAME}__link`, `${BLOCK_NAME}__link--grouped`, { [`${BLOCK_NAME}__link--active`]: isActive })
}
to={CALLS_PATH}>
<CallSvg />
Expand All @@ -60,7 +60,7 @@ export const RoutingChats = () => {
to={SETTINGS_PATH}
type="button"
className={({ isActive }) =>
classnames(`${BLOCK_NAME}__link`, { [`${BLOCK_NAME}__link--active`]: isActive }, { [`${BLOCK_NAME}__link--settings`]: !isActive })
classnames(`${BLOCK_NAME}__link`, `${BLOCK_NAME}__link--settings`, { [`${BLOCK_NAME}__link--active`]: isActive })
}>
<SettingsSvg />
</NavLink>
Expand Down

0 comments on commit 4440063

Please sign in to comment.