Migrate to external library for interacting with API
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
@ -14,10 +14,7 @@ const useUpdateBookmarkFolder = (folderId: string) => {
|
||||
const { createEntity, ...rest } = useCreateEntity(
|
||||
[Entities.BOOKMARK_FOLDERS],
|
||||
(params: UpdateBookmarkFolderParams) =>
|
||||
client.request(`/api/v1/pleroma/bookmark_folders/${folderId}`, {
|
||||
method: 'PATCH',
|
||||
body: JSON.stringify(params),
|
||||
}),
|
||||
client.myAccount.updateBookmarkFolder(folderId, params),
|
||||
{ schema: bookmarkFolderSchema },
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user