From bea663f4b28bb3ef6005d77bfee4ecbc536dedff Mon Sep 17 00:00:00 2001 From: Hein Thant Date: Thu, 26 Oct 2023 19:26:00 +0630 Subject: [PATCH] Update Channels.tsx --- src/pages/Channels.tsx | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/pages/Channels.tsx b/src/pages/Channels.tsx index 3a59031..2739b93 100644 --- a/src/pages/Channels.tsx +++ b/src/pages/Channels.tsx @@ -1,7 +1,6 @@ import { useState } from 'react'; import { FaPlus } from 'react-icons/fa'; -import { ToastContainer, toast } from 'react-toastify'; -import 'react-toastify/dist/ReactToastify.css'; +import { toast } from 'react-hot-toast'; import ChannelCard from '../features/Channels/ChannelCard'; import { getCreatedChannels } from '../features/Channels/channelsSlice'; @@ -27,13 +26,7 @@ const Channels = () => { setOpenForm(true); } else { // Show a toast notification instead of alert - toast.error("You've reached the maximum limit of channels (3).", { - position: "top-right", - autoClose: 5000, // Close after 5 seconds - hideProgressBar: false, - closeOnClick: true, - pauseOnHover: true, - }); + toast.error("You've reached the maximum limit of channels (3)."); } };