wip: implement bookmark preview

This commit is contained in:
2025-05-08 15:51:17 +01:00
parent 77cb38294c
commit 9b47b806d5
10 changed files with 164 additions and 58 deletions

View File

@@ -9,11 +9,9 @@ function useDeleteBookmark() {
return useMutation({
mutationFn: ({ bookmark }: { bookmark: Bookmark }) =>
new Promise((resolve) => setTimeout(resolve, 5000)).then(() =>
fetchApi(`/bookmark/${bookmark.id}`, {
method: "DELETE",
}),
),
fetchApi(`/bookmark/${bookmark.id}`, {
method: "DELETE",
}),
onError: (error) => {
if (error instanceof UnauthenticatedError) {
navigate({ to: "/login", replace: true })