Skip to content

Commit

Permalink
Update ChannelBtn.js
Browse files Browse the repository at this point in the history
  • Loading branch information
AxeRicin committed Jan 9, 2024
1 parent 252f1aa commit c3e4229
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions frontend/src/components/ChannelBtn.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const ChannelBtn = ({ channel }) => {
const dispatch = useDispatch();
const { t } = useTranslation();

const hendlerClickForChannelBtn = (id) => () => dispatch(setCurrentChannel(id));
const handlerClickForChannelBtn = (id) => () => dispatch(setCurrentChannel(id));

const handleRemoveChannel = (id) => () => dispatch(openModal({ type: 'removeChannel', extra: id }));
const handleRenameChannel = (id) => () => dispatch(openModal({ type: 'renameChannel', extra: id }));
Expand All @@ -35,7 +35,7 @@ const ChannelBtn = ({ channel }) => {
<li className="nav-item w-100">
<ButtonGroup className="d-flex dropdown">
<Button
onClick={hendlerClickForChannelBtn(channel.id)}
onClick={handlerClickForChannelBtn(channel.id)}
variant={isCurrentChannel(channel.id) ? 'secondary' : ''}
className={cn(classChannelName)}
>
Expand All @@ -60,7 +60,7 @@ const ChannelBtn = ({ channel }) => {
return (
<li className="nav-item w-100">
<Button
onClick={hendlerClickForChannelBtn(channel.id)}
onClick={handlerClickForChannelBtn(channel.id)}
variant={isCurrentChannel(channel.id) ? 'secondary' : ''}
className={classChannelName}
>
Expand Down

0 comments on commit c3e4229

Please sign in to comment.