From d193d9bf89e8a88bf70b673ea5e438d73cf40c0c Mon Sep 17 00:00:00 2001 From: Md Saban <45597394+mdsaban@users.noreply.github.com> Date: Tue, 2 Jul 2024 03:51:23 +0530 Subject: feat: Add bulk edit option for bookmarks. Fixes #84 (#259) * feat: add bulk edit option for bookmarks * fix: resolve comments * fix: resolve comments * fix: resolve comments * fix: resolve comments * rename bulk action store, simplify the bulk action toolbar --------- Co-authored-by: MohamedBassem --- apps/web/app/dashboard/archive/page.tsx | 4 ++-- apps/web/app/dashboard/bookmarks/page.tsx | 6 +++--- apps/web/app/dashboard/favourites/page.tsx | 4 ++-- apps/web/app/dashboard/search/page.tsx | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) (limited to 'apps/web/app') diff --git a/apps/web/app/dashboard/archive/page.tsx b/apps/web/app/dashboard/archive/page.tsx index a5326205..5c25d8cc 100644 --- a/apps/web/app/dashboard/archive/page.tsx +++ b/apps/web/app/dashboard/archive/page.tsx @@ -1,5 +1,5 @@ import Bookmarks from "@/components/dashboard/bookmarks/Bookmarks"; -import ChangeLayout from "@/components/dashboard/ChangeLayout"; +import GlobalActions from "@/components/dashboard/GlobalActions"; import InfoTooltip from "@/components/ui/info-tooltip"; function header() { @@ -12,7 +12,7 @@ function header() {
- +
); diff --git a/apps/web/app/dashboard/bookmarks/page.tsx b/apps/web/app/dashboard/bookmarks/page.tsx index 47392ad5..c02e6b85 100644 --- a/apps/web/app/dashboard/bookmarks/page.tsx +++ b/apps/web/app/dashboard/bookmarks/page.tsx @@ -1,6 +1,6 @@ import React from "react"; import Bookmarks from "@/components/dashboard/bookmarks/Bookmarks"; -import ChangeLayout from "@/components/dashboard/ChangeLayout"; +import GlobalActions from "@/components/dashboard/GlobalActions"; import { SearchInput } from "@/components/dashboard/search/SearchInput"; export default async function BookmarksPage() { @@ -8,9 +8,9 @@ export default async function BookmarksPage() {
- +
-
+
diff --git a/apps/web/app/dashboard/favourites/page.tsx b/apps/web/app/dashboard/favourites/page.tsx index fd39b90a..e5959af3 100644 --- a/apps/web/app/dashboard/favourites/page.tsx +++ b/apps/web/app/dashboard/favourites/page.tsx @@ -1,5 +1,5 @@ import Bookmarks from "@/components/dashboard/bookmarks/Bookmarks"; -import ChangeLayout from "@/components/dashboard/ChangeLayout"; +import GlobalActions from "@/components/dashboard/GlobalActions"; export default async function FavouritesBookmarkPage() { return ( @@ -7,7 +7,7 @@ export default async function FavouritesBookmarkPage() { header={

⭐️ Favourites

- +
} query={{ favourited: true }} diff --git a/apps/web/app/dashboard/search/page.tsx b/apps/web/app/dashboard/search/page.tsx index 11febca6..e7405c85 100644 --- a/apps/web/app/dashboard/search/page.tsx +++ b/apps/web/app/dashboard/search/page.tsx @@ -2,7 +2,7 @@ import { Suspense, useRef } from "react"; import BookmarksGrid from "@/components/dashboard/bookmarks/BookmarksGrid"; -import ChangeLayout from "@/components/dashboard/ChangeLayout"; +import GlobalActions from "@/components/dashboard/GlobalActions"; import { SearchInput } from "@/components/dashboard/search/SearchInput"; import { FullPageSpinner } from "@/components/ui/full-page-spinner"; import { useBookmarkSearch } from "@/lib/hooks/bookmark-search"; @@ -17,7 +17,7 @@ function SearchComp() {
- +
{data ? ( -- cgit v1.2.3-70-g09d2