From d8903ae3008757a4a2384facc7770f527fd7a78c Mon Sep 17 00:00:00 2001 From: Kentai Radiquum Date: Wed, 20 Nov 2024 20:18:10 +0500 Subject: [PATCH] feat: add faster navigating between bookmarks category --- app/pages/BookmarksCategory.tsx | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/app/pages/BookmarksCategory.tsx b/app/pages/BookmarksCategory.tsx index e5948e6..bda39cd 100644 --- a/app/pages/BookmarksCategory.tsx +++ b/app/pages/BookmarksCategory.tsx @@ -5,7 +5,7 @@ import { Spinner } from "#/components/Spinner/Spinner"; import { useState, useEffect } from "react"; import { useScrollPosition } from "#/hooks/useScrollPosition"; import { useUserStore } from "../store/auth"; -import { Dropdown, Button } from "flowbite-react"; +import { Dropdown, Button, Tabs } from "flowbite-react"; import { sort } from "./common"; import { ENDPOINTS } from "#/api/config"; import { BookmarksList } from "#/api/utils"; @@ -95,7 +95,7 @@ export function BookmarksCategoryPage(props: any) { return ( <>
{ e.preventDefault(); router.push(`/search?q=${searchVal}&where=list&list=${props.slug}`); @@ -142,6 +142,15 @@ export function BookmarksCategoryPage(props: any) {
+
+ + + + + + + +

{props.SectionTitleMapping[props.slug]} @@ -151,6 +160,7 @@ export function BookmarksCategoryPage(props: any) { dismissOnClick={true} arrowIcon={false} color={"blue"} + size={"sm"} theme={DropdownTheme} > {sort.values.map((item, index) => (