mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-29 17:39:41 +05:00
feat: add user friends preview
This commit is contained in:
parent
2fce051a54
commit
0cd74983f3
4 changed files with 72 additions and 2 deletions
|
@ -5,6 +5,7 @@ import { Button, ButtonGroup, Card } from "flowbite-react";
|
|||
import { ProfileActivityCollections } from "./Profile.ActivityCollections";
|
||||
import { useEffect, useState } from "react";
|
||||
import { CollectionCourusel } from "../CollectionCourusel/CollectionCourusel";
|
||||
import { ProfileActivityFriends } from "./Profile.ActivityFriends";
|
||||
|
||||
export function ProfileActivity(props: {
|
||||
profile_id: number;
|
||||
|
@ -13,6 +14,7 @@ export function ProfileActivity(props: {
|
|||
collectionCount: number;
|
||||
collectionPreview: any;
|
||||
friendsCount: number;
|
||||
friendsPreview: any;
|
||||
}) {
|
||||
const [tab, setTab] = useState<
|
||||
"collections" | "comments" | "friends" | "videos"
|
||||
|
@ -89,7 +91,7 @@ export function ProfileActivity(props: {
|
|||
/>
|
||||
)}
|
||||
{tab == "comments" && <>comments</>}
|
||||
{tab == "friends" && <>friends</>}
|
||||
{tab == "friends" && <ProfileActivityFriends content={props.friendsPreview || []} />}
|
||||
{tab == "videos" && <>videos</>}
|
||||
</Card>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue