aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/app/dashboard/lists
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-12-16 00:26:12 +0000
committerMohamedBassem <me@mbassem.com>2024-12-16 11:45:08 +0000
commitf4b2bac6b0749e5924f9e9e789cc361a17427364 (patch)
treed60e90f6788598f95e233cdc4947fa79b931f998 /apps/mobile/app/dashboard/lists
parent705d539c8e9c6a86882825ee4dabeff3027ba827 (diff)
downloadkarakeep-f4b2bac6b0749e5924f9e9e789cc361a17427364.tar.zst
ui(mobile): Make page titles more native
Diffstat (limited to 'apps/mobile/app/dashboard/lists')
-rw-r--r--apps/mobile/app/dashboard/lists/[slug].tsx12
1 files changed, 3 insertions, 9 deletions
diff --git a/apps/mobile/app/dashboard/lists/[slug].tsx b/apps/mobile/app/dashboard/lists/[slug].tsx
index 72e3d0ae..f98dd6d3 100644
--- a/apps/mobile/app/dashboard/lists/[slug].tsx
+++ b/apps/mobile/app/dashboard/lists/[slug].tsx
@@ -5,7 +5,6 @@ import UpdatingBookmarkList from "@/components/bookmarks/UpdatingBookmarkList";
import FullPageError from "@/components/FullPageError";
import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
import FullPageSpinner from "@/components/ui/FullPageSpinner";
-import PageTitle from "@/components/ui/PageTitle";
import { api } from "@/lib/trpc";
import { MenuView } from "@react-native-menu/menu";
import { Ellipsis } from "lucide-react-native";
@@ -25,9 +24,10 @@ export default function ListView() {
<CustomSafeAreaView>
<Stack.Screen
options={{
- headerTitle: "",
+ headerTitle: list ? `${list.icon} ${list.name}` : "",
headerBackTitle: "Back",
- headerTransparent: true,
+ headerLargeTitle: true,
+ headerRight: () => <ListActionsMenu listId={slug} />,
}}
/>
{error ? (
@@ -38,12 +38,6 @@ export default function ListView() {
query={{
listId: list.id,
}}
- header={
- <View className="flex flex-row items-center justify-between">
- <PageTitle title={`${list.icon} ${list.name}`} />
- <ListActionsMenu listId={list.id} />
- </View>
- }
/>
</View>
) : (