Skip to content

Commit

Permalink
Update Channels.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
IndieCoderMM authored Oct 26, 2023
1 parent 30d396f commit bea663f
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/pages/Channels.tsx
Original file line number Diff line number Diff line change
@@ -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';
Expand All @@ -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).");
}
};

Expand Down

0 comments on commit bea663f

Please sign in to comment.