mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-30 01:49:40 +05:00
feat: add another user profile bookmarks viewing
This commit is contained in:
parent
05b4fc3325
commit
b0eed16d18
8 changed files with 150 additions and 21 deletions
|
@ -19,7 +19,9 @@ const fetcher = async (url: string) => {
|
|||
const res = await fetch(url);
|
||||
|
||||
if (!res.ok) {
|
||||
const error = new Error(`An error occurred while fetching the data. status: ${res.status}`);
|
||||
const error = new Error(
|
||||
`An error occurred while fetching the data. status: ${res.status}`
|
||||
);
|
||||
error.message = await res.json();
|
||||
throw error;
|
||||
}
|
||||
|
@ -185,6 +187,7 @@ export const ProfilePage = (props: any) => {
|
|||
]}
|
||||
watched_count={user.watched_episode_count}
|
||||
watched_time={user.watched_time}
|
||||
profile_id={user.id}
|
||||
/>
|
||||
<ProfileWatchDynamic watchDynamic={user.watch_dynamics || []} />
|
||||
<div className="flex flex-col gap-2 xl:hidden">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue