mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-29 17:39:41 +05:00
feat: add user profile comments preview
Some checks failed
V3 Preview Deployment / Deploy-Preview (push) Has been cancelled
Some checks failed
V3 Preview Deployment / Deploy-Preview (push) Has been cancelled
This commit is contained in:
parent
5572f31c60
commit
762c2f324a
3 changed files with 101 additions and 6 deletions
|
@ -1,16 +1,14 @@
|
|||
"use client";
|
||||
import { Button, ButtonGroup, Card } from "flowbite-react";
|
||||
// import Link from "next/link";
|
||||
// import { numberDeclension } from "#/api/utils";
|
||||
import { ProfileActivityCollections } from "./Profile.ActivityCollections";
|
||||
import { useEffect, useState } from "react";
|
||||
import { CollectionCourusel } from "../CollectionCourusel/CollectionCourusel";
|
||||
import { ProfileActivityFriends } from "./Profile.ActivityFriends";
|
||||
import { ProfileActivityComment } from "./Profile.ActivityComment";
|
||||
|
||||
export function ProfileActivity(props: {
|
||||
profile_id: number;
|
||||
commentCount: number;
|
||||
videoCount: number;
|
||||
commentPreview: any;
|
||||
collectionCount: number;
|
||||
collectionPreview: any;
|
||||
friendsCount: number;
|
||||
|
@ -95,7 +93,12 @@ export function ProfileActivity(props: {
|
|||
profile_id={props.profile_id}
|
||||
/>
|
||||
)}
|
||||
{tab == "comments" && <>comments</>}
|
||||
{tab == "comments" && (
|
||||
<ProfileActivityComment
|
||||
content={props.commentPreview || []}
|
||||
profile_id={props.profile_id}
|
||||
/>
|
||||
)}
|
||||
{tab == "friends" && (
|
||||
<ProfileActivityFriends
|
||||
token={props.token}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue