aboutsummaryrefslogtreecommitdiffstats
path: root/apps/mobile/app/dashboard/(tabs)
diff options
context:
space:
mode:
Diffstat (limited to 'apps/mobile/app/dashboard/(tabs)')
-rw-r--r--apps/mobile/app/dashboard/(tabs)/_layout.tsx4
-rw-r--r--apps/mobile/app/dashboard/(tabs)/index.tsx13
-rw-r--r--apps/mobile/app/dashboard/(tabs)/lists.tsx8
-rw-r--r--apps/mobile/app/dashboard/(tabs)/search.tsx2
-rw-r--r--apps/mobile/app/dashboard/(tabs)/settings.tsx2
5 files changed, 15 insertions, 14 deletions
diff --git a/apps/mobile/app/dashboard/(tabs)/_layout.tsx b/apps/mobile/app/dashboard/(tabs)/_layout.tsx
index fe40215e..7967b5c6 100644
--- a/apps/mobile/app/dashboard/(tabs)/_layout.tsx
+++ b/apps/mobile/app/dashboard/(tabs)/_layout.tsx
@@ -1,8 +1,8 @@
import React, { useEffect } from "react";
+import { Platform } from "react-native";
+import * as NavigationBar from "expo-navigation-bar";
import { Tabs } from "expo-router";
import { ClipboardList, Home, Search, Settings } from "lucide-react-native";
-import { Platform } from "react-native";
-import * as NavigationBar from 'expo-navigation-bar';
export default function TabLayout() {
useEffect(() => {
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>
);
diff --git a/apps/mobile/app/dashboard/(tabs)/lists.tsx b/apps/mobile/app/dashboard/(tabs)/lists.tsx
index 0350ebd2..767b9256 100644
--- a/apps/mobile/app/dashboard/(tabs)/lists.tsx
+++ b/apps/mobile/app/dashboard/(tabs)/lists.tsx
@@ -1,10 +1,10 @@
import { useEffect, useState } from "react";
import { FlatList, Pressable, Text, View } from "react-native";
import { Link } from "expo-router";
+import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
+import PageTitle from "@/components/ui/PageTitle";
import { api } from "@/lib/trpc";
import { ChevronRight } from "lucide-react-native";
-import PageTitle from "@/components/ui/PageTitle";
-import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
export default function Lists() {
const [refreshing, setRefreshing] = useState(false);
@@ -51,9 +51,7 @@ export default function Lists() {
return (
<CustomSafeAreaView>
<FlatList
- ListHeaderComponent={
- <PageTitle title="Lists" />
- }
+ ListHeaderComponent={<PageTitle title="Lists" />}
contentContainerStyle={{
gap: 5,
}}
diff --git a/apps/mobile/app/dashboard/(tabs)/search.tsx b/apps/mobile/app/dashboard/(tabs)/search.tsx
index bcaee5af..0a4dcbfd 100644
--- a/apps/mobile/app/dashboard/(tabs)/search.tsx
+++ b/apps/mobile/app/dashboard/(tabs)/search.tsx
@@ -1,13 +1,13 @@
import { useState } from "react";
import { View } from "react-native";
import BookmarkList from "@/components/bookmarks/BookmarkList";
+import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
import FullPageSpinner from "@/components/ui/FullPageSpinner";
import { Input } from "@/components/ui/Input";
import PageTitle from "@/components/ui/PageTitle";
import { api } from "@/lib/trpc";
import { keepPreviousData } from "@tanstack/react-query";
import { useDebounce } from "use-debounce";
-import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
export default function Search() {
const [search, setSearch] = useState("");
diff --git a/apps/mobile/app/dashboard/(tabs)/settings.tsx b/apps/mobile/app/dashboard/(tabs)/settings.tsx
index 0dbf7da6..c2db2846 100644
--- a/apps/mobile/app/dashboard/(tabs)/settings.tsx
+++ b/apps/mobile/app/dashboard/(tabs)/settings.tsx
@@ -1,9 +1,9 @@
import { Text, View } from "react-native";
import { Button } from "@/components/ui/Button";
+import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
import PageTitle from "@/components/ui/PageTitle";
import { useSession } from "@/lib/session";
import { api } from "@/lib/trpc";
-import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView";
export default function Dashboard() {
const { logout } = useSession();