fix: align favorites page with post adapter
Some checks failed
Deploy Staging (terry-wallet-login) / deploy (push) Failing after 28s

This commit is contained in:
TerryM
2026-06-04 17:46:09 +08:00
parent 4f6cbbc314
commit ec98ff5a03
4 changed files with 86 additions and 130 deletions

View File

@@ -1,9 +1,10 @@
import { apiBase, itemsOrEmpty, type Resource } from "../api";
import { apiBase, itemsOrEmpty } from "../api";
import type { Post } from "../types/post";
export type FavoriteSort = "favorited_at" | "published_at" | "hot";
export type FavoriteListResponse = {
items: Resource[];
items: Post[];
page?: number;
limit?: number;
total?: number;