diff options
Diffstat (limited to 'apps/mobile/app/dashboard/(tabs)')
| -rw-r--r-- | apps/mobile/app/dashboard/(tabs)/index.tsx | 10 | ||||
| -rw-r--r-- | apps/mobile/app/dashboard/(tabs)/lists.tsx | 10 |
2 files changed, 6 insertions, 14 deletions
diff --git a/apps/mobile/app/dashboard/(tabs)/index.tsx b/apps/mobile/app/dashboard/(tabs)/index.tsx index b9ab7d11..f70474a9 100644 --- a/apps/mobile/app/dashboard/(tabs)/index.tsx +++ b/apps/mobile/app/dashboard/(tabs)/index.tsx @@ -1,9 +1,7 @@ -import { useRef } from "react"; import { Platform, Pressable, Text, View } from "react-native"; import * as Haptics from "expo-haptics"; import * as ImagePicker from "expo-image-picker"; import { router } from "expo-router"; -import NoteEditorModal from "@/components/bookmarks/NewBookmarkModal"; import UpdatingBookmarkList from "@/components/bookmarks/UpdatingBookmarkList"; import { TailwindResolver } from "@/components/TailwindResolver"; import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView"; @@ -11,7 +9,6 @@ import PageTitle from "@/components/ui/PageTitle"; import { useToast } from "@/components/ui/Toast"; import useAppSettings from "@/lib/settings"; import { useUploadAsset } from "@/lib/upload"; -import { BottomSheetModal } from "@gorhom/bottom-sheet"; import { MenuView } from "@react-native-menu/menu"; import { Plus, Search } from "lucide-react-native"; @@ -77,11 +74,8 @@ function HeaderRight({ } export default function Home() { - const newBookmarkModal = useRef<BottomSheetModal>(null); - return ( <CustomSafeAreaView> - <NoteEditorModal ref={newBookmarkModal} snapPoints={["90%", "60%"]} /> <UpdatingBookmarkList query={{ archived: false }} header={ @@ -89,7 +83,9 @@ export default function Home() { <View className="flex flex-row justify-between"> <PageTitle title="Home" className="pb-2" /> <HeaderRight - openNewBookmarkModal={() => newBookmarkModal.current?.present()} + openNewBookmarkModal={() => + router.push("/dashboard/bookmarks/new") + } /> </View> <Pressable diff --git a/apps/mobile/app/dashboard/(tabs)/lists.tsx b/apps/mobile/app/dashboard/(tabs)/lists.tsx index fa97f67a..9cc49cd4 100644 --- a/apps/mobile/app/dashboard/(tabs)/lists.tsx +++ b/apps/mobile/app/dashboard/(tabs)/lists.tsx @@ -1,15 +1,13 @@ -import { useEffect, useRef, useState } from "react"; +import { useEffect, useState } from "react"; import { FlatList, Pressable, Text, View } from "react-native"; import * as Haptics from "expo-haptics"; -import { Link } from "expo-router"; +import { Link, router } from "expo-router"; import FullPageError from "@/components/FullPageError"; -import NewListModal from "@/components/lists/NewListModal"; import { TailwindResolver } from "@/components/TailwindResolver"; import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView"; import FullPageSpinner from "@/components/ui/FullPageSpinner"; import PageTitle from "@/components/ui/PageTitle"; import { api } from "@/lib/trpc"; -import { BottomSheetModal } from "@gorhom/bottom-sheet"; import { ChevronRight, Plus } from "lucide-react-native"; import { useBookmarkLists } from "@hoarder/shared-react/hooks/lists"; @@ -72,7 +70,6 @@ export default function Lists() { {}, ); const apiUtils = api.useUtils(); - const newListModal = useRef<BottomSheetModal>(null); useEffect(() => { setRefreshing(isPending); @@ -117,14 +114,13 @@ export default function Lists() { return ( <CustomSafeAreaView> - <NewListModal ref={newListModal} snapPoints={["90%"]} /> <FlatList className="h-full" ListHeaderComponent={ <View className="flex flex-row justify-between"> <PageTitle title="Lists" /> <HeaderRight - openNewListModal={() => newListModal.current?.present()} + openNewListModal={() => router.push("/dashboard/lists/new")} /> </View> } |
