mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-29 17:39:41 +05:00
feat: add profile friend view
This commit is contained in:
parent
0730b7c7d4
commit
256ecea885
5 changed files with 441 additions and 59 deletions
|
@ -15,6 +15,8 @@ export function ProfileActivity(props: {
|
|||
collectionPreview: any;
|
||||
friendsCount: number;
|
||||
friendsPreview: any;
|
||||
token: string;
|
||||
isMyProfile: boolean;
|
||||
}) {
|
||||
const [tab, setTab] = useState<
|
||||
"collections" | "comments" | "friends" | "videos"
|
||||
|
@ -91,7 +93,14 @@ export function ProfileActivity(props: {
|
|||
/>
|
||||
)}
|
||||
{tab == "comments" && <>comments</>}
|
||||
{tab == "friends" && <ProfileActivityFriends content={props.friendsPreview || []} />}
|
||||
{tab == "friends" && (
|
||||
<ProfileActivityFriends
|
||||
token={props.token}
|
||||
content={props.friendsPreview || []}
|
||||
isMyProfile={props.isMyProfile}
|
||||
profile_id={props.profile_id}
|
||||
/>
|
||||
)}
|
||||
{tab == "videos" && <>videos</>}
|
||||
</Card>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue