diff options
| author | MohamedBassem <me@mbassem.com> | 2024-10-05 20:30:07 +0100 |
|---|---|---|
| committer | MohamedBassem <me@mbassem.com> | 2024-10-05 20:30:43 +0100 |
| commit | c01732845408f209dd8dcaa0be942c5609239556 (patch) | |
| tree | 912d44e85935a3328919ae7eb4496b9b6c7f5161 /apps/mobile | |
| parent | b147c8e5df75bdeafb1f0eeb2e6ce08e0dec7e37 (diff) | |
| download | karakeep-c01732845408f209dd8dcaa0be942c5609239556.tar.zst | |
fix(mobile): Drop the floating add button. Fixes #439
Diffstat (limited to 'apps/mobile')
| -rw-r--r-- | apps/mobile/app/dashboard/(tabs)/index.tsx | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/apps/mobile/app/dashboard/(tabs)/index.tsx b/apps/mobile/app/dashboard/(tabs)/index.tsx index 01b17276..de418be0 100644 --- a/apps/mobile/app/dashboard/(tabs)/index.tsx +++ b/apps/mobile/app/dashboard/(tabs)/index.tsx @@ -1,10 +1,9 @@ import { useRef } from "react"; -import { Platform, Pressable, View } from "react-native"; +import { Platform, View } from "react-native"; import * as Haptics from "expo-haptics"; import * as ImagePicker from "expo-image-picker"; import NoteEditorModal from "@/components/bookmarks/NewBookmarkModal"; import UpdatingBookmarkList from "@/components/bookmarks/UpdatingBookmarkList"; -import { TailwindResolver } from "@/components/TailwindResolver"; import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView"; import PageTitle from "@/components/ui/PageTitle"; import { useToast } from "@/components/ui/Toast"; @@ -12,7 +11,7 @@ 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, SquarePen } from "lucide-react-native"; +import { Plus } from "lucide-react-native"; function HeaderRight({ openNewBookmarkModal, @@ -66,7 +65,7 @@ function HeaderRight({ shouldOpenOnLongPress={false} > <View className="my-auto px-4"> - <SquarePen + <Plus color="rgb(0, 122, 255)" onPress={() => Haptics.selectionAsync()} /> @@ -92,17 +91,6 @@ export default function Home() { </View> } /> - <Pressable - className="absolute bottom-4 right-4 rounded-full bg-foreground p-6" - onPress={() => newBookmarkModal.current?.present()} - > - <TailwindResolver - comp={(styles) => ( - <Plus size={30} color={styles?.color?.toString()} /> - )} - className="text-background" - /> - </Pressable> </CustomSafeAreaView> ); } |
