aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/app/dashboard/(tabs)/index.tsx
diff options
context:
space:
mode:
authorMohamedBassem <me@mbassem.com>2024-03-30 16:26:16 +0000
committerMohamedBassem <me@mbassem.com>2024-03-30 16:26:16 +0000
commit46b78eaac30be26fe40520e97786563344af8403 (patch)
treec4c0e1ae1d3d21a6f1fbf5f44f68e99243bbb5d3 /apps/mobile/app/dashboard/(tabs)/index.tsx
parent853ed13450b3a0d92cba144cc0dfd0696e7c810c (diff)
downloadkarakeep-46b78eaac30be26fe40520e97786563344af8403.tar.zst
format: Add missing lint and format, and format the entire repo
Diffstat (limited to 'apps/mobile/app/dashboard/(tabs)/index.tsx')
-rw-r--r--apps/mobile/app/dashboard/(tabs)/index.tsx13
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/mobile/app/dashboard/(tabs)/index.tsx b/apps/mobile/app/dashboard/(tabs)/index.tsx
index 804eb0b5..5dccc845 100644
--- a/apps/mobile/app/dashboard/(tabs)/index.tsx
+++ b/apps/mobile/app/dashboard/(tabs)/index.tsx
@@ -3,21 +3,21 @@ import * as Haptics from "expo-haptics";
import * as ImagePicker from "expo-image-picker";
import { useRouter } from "expo-router";
import UpdatingBookmarkList from "@/components/bookmarks/UpdatingBookmarkList";
+import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
import PageTitle from "@/components/ui/PageTitle";
+import { useToast } from "@/components/ui/Toast";
import useAppSettings from "@/lib/settings";
import { useUploadAsset } from "@/lib/upload";
import { MenuView } from "@react-native-menu/menu";
import { SquarePen } from "lucide-react-native";
-import { useToast } from "@/components/ui/Toast";
-import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
function HeaderRight() {
- const {toast} = useToast();
+ const { toast } = useToast();
const router = useRouter();
const { settings } = useAppSettings();
const { uploadAsset } = useUploadAsset(settings, {
onError: (e) => {
- toast({message: e, variant: "destructive"});
+ toast({ message: e, variant: "destructive" });
},
});
return (
@@ -69,7 +69,10 @@ function HeaderRight() {
shouldOpenOnLongPress={false}
>
<View className="my-auto px-4">
- <SquarePen color="rgb(0, 122, 255)" onPress={() => Haptics.selectionAsync()} />
+ <SquarePen
+ color="rgb(0, 122, 255)"
+ onPress={() => Haptics.selectionAsync()}
+ />
</View>
</MenuView>
);