aboutsummaryrefslogtreecommitdiffstats
path: root/packages/mobile/app/dashboard/(tabs)
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-03-13 16:03:13 +0000
committerMohamedBassem <me@mbassem.com>2024-03-13 16:03:13 +0000
commite40a18132119a90d9b4bf035ecf741b930342688 (patch)
treee354acf2f2268bed51f688d82f9baf8e590e6338 /packages/mobile/app/dashboard/(tabs)
parent0593b939c6cb733b6131d7264d3296a031c0a988 (diff)
downloadkarakeep-e40a18132119a90d9b4bf035ecf741b930342688.tar.zst
mobile: Add support for manually adding bookmarks
Diffstat (limited to 'packages/mobile/app/dashboard/(tabs)')
-rw-r--r--packages/mobile/app/dashboard/(tabs)/index.tsx28
1 files changed, 27 insertions, 1 deletions
diff --git a/packages/mobile/app/dashboard/(tabs)/index.tsx b/packages/mobile/app/dashboard/(tabs)/index.tsx
index 07516f3b..b2349525 100644
--- a/packages/mobile/app/dashboard/(tabs)/index.tsx
+++ b/packages/mobile/app/dashboard/(tabs)/index.tsx
@@ -1,5 +1,31 @@
+import { Link, Stack } from "expo-router";
+import { SquarePen, Link as LinkIcon } from "lucide-react-native";
+import { View } from "react-native";
+
import BookmarkList from "@/components/bookmarks/BookmarkList";
+function HeaderRight() {
+ return (
+ <View className="flex flex-row">
+ <Link href="dashboard/add-link" className="mt-2 px-2">
+ <LinkIcon />
+ </Link>
+ <Link href="dashboard/add-note" className="mt-2 px-2">
+ <SquarePen />
+ </Link>
+ </View>
+ );
+}
+
export default function Home() {
- return <BookmarkList archived={false} />;
+ return (
+ <>
+ <Stack.Screen
+ options={{
+ headerRight: () => <HeaderRight />,
+ }}
+ />
+ <BookmarkList archived={false} />
+ </>
+ );
}