Skip to content

Commit

Permalink
renamed toast and added locale
Browse files Browse the repository at this point in the history
  • Loading branch information
bobrov-site committed May 10, 2024
1 parent cd9f108 commit 592a863
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion frontend/src/components/channels/Channels.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const Channels = () => {
refetchMessages();
}
await removeChannel(id);
toast.success(t('toast.addChannel'));
toast.success(t('toast.deleteChannel'));
refetchChannels();
handleCloseModal();
dispatch(changeChannel({ id: '1', name: 'general' }));
Expand Down
1 change: 1 addition & 0 deletions frontend/src/locales/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ export default {
},
toast: {
addChannel: 'Канал создан',
deleteChannel: 'Канал удален',
renameChannel: 'Канал переименован',
errorNetwork: 'Ошибка соединения',
},
Expand Down

0 comments on commit 592a863

Please sign in to comment.