Renders the form that edits a playlist's details, categories and cover, in place of the header of its page.
f
PlaylistEditForm(unnamed 0: PlaylistEditFormProps): React.JSX.Element
Renders the form that edits the playlist, in place of the page's header. It
saves the details with PUT /api/playlists/:playlistId, sending only the
title, slug, description and categories that changed, then a new cover, if
one was picked, with PUT /api/playlists/:playlistId/cover.
I
PlaylistEditFormProps
Passed to PlaylistEditForm by PlaylistDetail.
- onCancel: () => void
-
onRequestDelete: () => void
Opens the page's confirmation, which deletes the playlist.
-
onSaved: (playlist: Playlist) => void
Called with the playlist as the server now has it.
- playlist: PlaylistWithDumps
Usage
import * as mod from "src/components/playlist/PlaylistEditForm.tsx";