Changeset c8baad1 for frontend/src/components/Sidebar.tsx
- Timestamp:
- 02/15/26 01:58:19 (5 months ago)
- Branches:
- main
- Children:
- d1ee039
- Parents:
- ce45c7a
- File:
-
- 1 edited
-
frontend/src/components/Sidebar.tsx (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
frontend/src/components/Sidebar.tsx
rce45c7a rc8baad1 43 43 } 44 44 }, [user]); 45 46 const handleCreatePlaylist = async (playlistName: string) => {47 try {48 await axiosInstance.post("/playlists", { name: playlistName });49 toast.success("Playlist created successfully!");50 await refreshPlaylists(false);51 } catch (error) {52 toast.error(getErrorMessage(error));53 }54 };55 45 56 46 const isLoading = songsLoading || playlistsLoading; … … 282 272 isOpen={isModalOpen} 283 273 onClose={() => setIsModalOpen(false)} 284 onSu bmit={handleCreatePlaylist}274 onSuccess={() => refreshPlaylists(false)} 285 275 /> 286 276 </>
Note:
See TracChangeset
for help on using the changeset viewer.
