aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/app/dashboard/lists
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-03-15 21:06:13 +0000
committerMohamedBassem <me@mbassem.com>2024-03-15 21:06:13 +0000
commit267f72f84c6a5979eae696dae8fddee25188c1bb (patch)
tree704907d296f82c524c0a359c3c8e5ccab4415b3d /apps/mobile/app/dashboard/lists
parentc4d7223115865474f09661cdbfee60a559f4b2c2 (diff)
downloadkarakeep-267f72f84c6a5979eae696dae8fddee25188c1bb.tar.zst
ui(mobile): New header style in the app
Diffstat (limited to 'apps/mobile/app/dashboard/lists')
-rw-r--r--apps/mobile/app/dashboard/lists/[slug].tsx17
1 files changed, 12 insertions, 5 deletions
diff --git a/apps/mobile/app/dashboard/lists/[slug].tsx b/apps/mobile/app/dashboard/lists/[slug].tsx
index f85aeeaf..0d1c01dc 100644
--- a/apps/mobile/app/dashboard/lists/[slug].tsx
+++ b/apps/mobile/app/dashboard/lists/[slug].tsx
@@ -1,7 +1,8 @@
-import { View } from "react-native";
+import { SafeAreaView, View } from "react-native";
import { Stack, useLocalSearchParams } from "expo-router";
import BookmarkList from "@/components/bookmarks/BookmarkList";
import FullPageSpinner from "@/components/ui/FullPageSpinner";
+import PageTitle from "@/components/ui/PageTitle";
import { api } from "@/lib/trpc";
export default function ListView() {
@@ -12,19 +13,25 @@ export default function ListView() {
const { data: list } = api.lists.get.useQuery({ listId: slug });
return (
- <>
+ <SafeAreaView>
<Stack.Screen
options={{
- headerTitle: list ? `${list.icon} ${list.name}` : "Loading ...",
+ headerTitle: "",
+ headerBackTitle: "Back",
+ headerTransparent: true,
}}
/>
{list ? (
<View>
- <BookmarkList archived={false} ids={list.bookmarks} />
+ <BookmarkList
+ archived={false}
+ ids={list.bookmarks}
+ header={<PageTitle title={`${list.icon} ${list.name}`} />}
+ />
</View>
) : (
<FullPageSpinner />
)}
- </>
+ </SafeAreaView>
);
}