mirror of
https://github.com/Radiquum/AniX.git
synced 2025-04-07 00:34:41 +00:00
fix: remove search box from user statistic page lists view
This commit is contained in:
parent
d46075c88c
commit
2e037a99fe
1 changed files with 120 additions and 51 deletions
|
@ -94,6 +94,7 @@ export function BookmarksCategoryPage(props: any) {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
{!props.profile_id ? (
|
||||||
<form
|
<form
|
||||||
className="flex-1 max-w-full mx-4"
|
className="flex-1 max-w-full mx-4"
|
||||||
onSubmit={(e) => {
|
onSubmit={(e) => {
|
||||||
|
@ -142,13 +143,81 @@ export function BookmarksCategoryPage(props: any) {
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
) : (
|
||||||
|
""
|
||||||
|
)}
|
||||||
<div className="m-4 overflow-auto">
|
<div className="m-4 overflow-auto">
|
||||||
<Button.Group>
|
<Button.Group>
|
||||||
<Button className="whitespace-nowrap" disabled={props.slug == "watching"} color="light" onClick={() => router.push(props.profile_id ? `/profile/${props.profile_id}/bookmarks/watching` : "/bookmarks/watching")}>{props.SectionTitleMapping["watching"]}</Button>
|
<Button
|
||||||
<Button className="whitespace-nowrap" disabled={props.slug == "planned"} color="light" onClick={() => router.push(props.profile_id ? `/profile/${props.profile_id}/bookmarks/planned` : "/bookmarks/planned")}>{props.SectionTitleMapping["planned"]}</Button>
|
className="whitespace-nowrap"
|
||||||
<Button className="whitespace-nowrap" disabled={props.slug == "watched"} color="light" onClick={() => router.push(props.profile_id ? `/profile/${props.profile_id}/bookmarks/watched` : "/bookmarks/watched")}>{props.SectionTitleMapping["watched"]}</Button>
|
disabled={props.slug == "watching"}
|
||||||
<Button className="whitespace-nowrap" disabled={props.slug == "delayed"} color="light" onClick={() => router.push(props.profile_id ? `/profile/${props.profile_id}/bookmarks/delayed` : "/bookmarks/delayed")}>{props.SectionTitleMapping["delayed"]}</Button>
|
color="light"
|
||||||
<Button className="whitespace-nowrap" disabled={props.slug == "abandoned"} color="light" onClick={() => router.push(props.profile_id ? `/profile/${props.profile_id}/bookmarks/abandoned` : "/bookmarks/abandoned")}>{props.SectionTitleMapping["abandoned"]}</Button>
|
onClick={() =>
|
||||||
|
router.push(
|
||||||
|
props.profile_id
|
||||||
|
? `/profile/${props.profile_id}/bookmarks/watching`
|
||||||
|
: "/bookmarks/watching"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{props.SectionTitleMapping["watching"]}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
className="whitespace-nowrap"
|
||||||
|
disabled={props.slug == "planned"}
|
||||||
|
color="light"
|
||||||
|
onClick={() =>
|
||||||
|
router.push(
|
||||||
|
props.profile_id
|
||||||
|
? `/profile/${props.profile_id}/bookmarks/planned`
|
||||||
|
: "/bookmarks/planned"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{props.SectionTitleMapping["planned"]}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
className="whitespace-nowrap"
|
||||||
|
disabled={props.slug == "watched"}
|
||||||
|
color="light"
|
||||||
|
onClick={() =>
|
||||||
|
router.push(
|
||||||
|
props.profile_id
|
||||||
|
? `/profile/${props.profile_id}/bookmarks/watched`
|
||||||
|
: "/bookmarks/watched"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{props.SectionTitleMapping["watched"]}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
className="whitespace-nowrap"
|
||||||
|
disabled={props.slug == "delayed"}
|
||||||
|
color="light"
|
||||||
|
onClick={() =>
|
||||||
|
router.push(
|
||||||
|
props.profile_id
|
||||||
|
? `/profile/${props.profile_id}/bookmarks/delayed`
|
||||||
|
: "/bookmarks/delayed"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{props.SectionTitleMapping["delayed"]}
|
||||||
|
</Button>
|
||||||
|
<Button
|
||||||
|
className="whitespace-nowrap"
|
||||||
|
disabled={props.slug == "abandoned"}
|
||||||
|
color="light"
|
||||||
|
onClick={() =>
|
||||||
|
router.push(
|
||||||
|
props.profile_id
|
||||||
|
? `/profile/${props.profile_id}/bookmarks/abandoned`
|
||||||
|
: "/bookmarks/abandoned"
|
||||||
|
)
|
||||||
|
}
|
||||||
|
>
|
||||||
|
{props.SectionTitleMapping["abandoned"]}
|
||||||
|
</Button>
|
||||||
</Button.Group>
|
</Button.Group>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center justify-between px-4 py-2 border-b-2 border-black dark:border-white">
|
<div className="flex items-center justify-between px-4 py-2 border-b-2 border-black dark:border-white">
|
||||||
|
|
Loading…
Add table
Reference in a new issue