aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/app/dashboard/(tabs)
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-03-17 10:15:01 +0000
committerMohamedBassem <me@mbassem.com>2024-03-17 10:22:38 +0000
commitc2bd6d6b33dc24c4321228add4fedfade93eb014 (patch)
tree6a3d52dbea3143cb95049293e06ef4a1b4efcdeb /apps/mobile/app/dashboard/(tabs)
parent0b99fe783aaebc5baca40f9d1b837278811cd228 (diff)
downloadkarakeep-c2bd6d6b33dc24c4321228add4fedfade93eb014.tar.zst
refactor: Prepare for pagination by dropping querying bookmarks by id
Diffstat (limited to 'apps/mobile/app/dashboard/(tabs)')
-rw-r--r--apps/mobile/app/dashboard/(tabs)/index.tsx4
-rw-r--r--apps/mobile/app/dashboard/(tabs)/search.tsx2
2 files changed, 3 insertions, 3 deletions
diff --git a/apps/mobile/app/dashboard/(tabs)/index.tsx b/apps/mobile/app/dashboard/(tabs)/index.tsx
index 1a17d472..7f70af6b 100644
--- a/apps/mobile/app/dashboard/(tabs)/index.tsx
+++ b/apps/mobile/app/dashboard/(tabs)/index.tsx
@@ -2,9 +2,9 @@ import { Platform, SafeAreaView, View } from "react-native";
import * as Haptics from "expo-haptics";
import { useRouter } from "expo-router";
import BookmarkList from "@/components/bookmarks/BookmarkList";
+import PageTitle from "@/components/ui/PageTitle";
import { MenuView } from "@react-native-menu/menu";
import { SquarePen } from "lucide-react-native";
-import PageTitle from "@/components/ui/PageTitle";
function HeaderRight() {
const router = useRouter();
@@ -49,7 +49,7 @@ export default function Home() {
return (
<SafeAreaView>
<BookmarkList
- archived={false}
+ query={{ archived: false }}
header={
<View className="flex flex-row justify-between">
<PageTitle title="Home" />
diff --git a/apps/mobile/app/dashboard/(tabs)/search.tsx b/apps/mobile/app/dashboard/(tabs)/search.tsx
index 76e9aef9..25fc53d5 100644
--- a/apps/mobile/app/dashboard/(tabs)/search.tsx
+++ b/apps/mobile/app/dashboard/(tabs)/search.tsx
@@ -21,7 +21,7 @@ export default function Search() {
<SafeAreaView>
{data && (
<BookmarkList
- ids={data.bookmarks.map((b) => b.id)}
+ query={{ids: data.bookmarks.map((b) => b.id)}}
header={
<View>
<PageTitle title="Search" />