feat: channel deletion notification

This commit is contained in:
antebrl
2024-12-16 15:39:36 +00:00
parent d3e496628a
commit c05d94189f
2 changed files with 6 additions and 1 deletions

View File

@@ -111,6 +111,11 @@ function ChannelModal({ isOpen, onClose, channel }: ChannelModalProps) {
if (channel) {
socketService.deleteChannel(channel.id);
}
addToast({
type: 'error',
title: 'Channel deleted',
duration: 3000,
});
onClose();
};