diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx index 3f24237bb..1b5c53e5c 100644 --- a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx +++ b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx @@ -1,10 +1,9 @@ import React, { useMemo } from "react"; import { Pressable, SectionList, Text, View } from "react-native"; -import { useLocalSearchParams } from "expo-router"; +import { Stack, useLocalSearchParams } from "expo-router"; import { TailwindResolver } from "@/components/TailwindResolver"; import CustomSafeAreaView from "@/components/ui/CustomSafeAreaView"; import FullPageSpinner from "@/components/ui/FullPageSpinner"; -import { Input } from "@/components/ui/Input"; import { useToast } from "@/components/ui/Toast"; import { Check, Plus } from "lucide-react-native"; @@ -124,84 +123,85 @@ const ListPickerPage = () => { return ( - - - } - keyExtractor={(t) => t.id} - contentContainerStyle={{ - gap: 5, - }} - SectionSeparatorComponent={() => } - sections={[ - { - title: "Existing Tags", - data: filteredTags.filteredOptimisticTags ?? [], - }, - { - title: "All Tags", - data: filteredTags.filteredAllTags ?? [], - }, - ]} - renderItem={(t) => ( - - updateTags({ - bookmarkId, - detach: - t.section.title == "Existing Tags" - ? [ - { - tagId: - t.item.id == NEW_TAG_ID ? undefined : t.item.id, - tagName: t.item.name, - }, - ] - : [], - attach: - t.section.title == "All Tags" - ? [ - { - tagId: - t.item.id == NEW_TAG_ID ? undefined : t.item.id, - tagName: t.item.name, - }, - ] - : [], - }) - } - > - - {t.section.title == "Existing Tags" && ( - } - /> - )} - {t.section.title == "All Tags" && t.item.id == NEW_TAG_ID && ( - } - /> - )} - - {t.item.id == NEW_TAG_ID - ? `Create new tag '${t.item.name}'` - : t.item.name} - - - - )} - /> - + setSearch(event.nativeEvent.text), + autoCapitalize: "none", + }, + }} + /> + t.id} + contentContainerStyle={{ + gap: 5, + }} + SectionSeparatorComponent={() => } + sections={[ + { + title: "Existing Tags", + data: filteredTags.filteredOptimisticTags ?? [], + }, + { + title: "All Tags", + data: filteredTags.filteredAllTags ?? [], + }, + ]} + renderItem={(t) => ( + + updateTags({ + bookmarkId, + detach: + t.section.title == "Existing Tags" + ? [ + { + tagId: + t.item.id == NEW_TAG_ID ? undefined : t.item.id, + tagName: t.item.name, + }, + ] + : [], + attach: + t.section.title == "All Tags" + ? [ + { + tagId: + t.item.id == NEW_TAG_ID ? undefined : t.item.id, + tagName: t.item.name, + }, + ] + : [], + }) + } + > + + {t.section.title == "Existing Tags" && ( + } + /> + )} + {t.section.title == "All Tags" && t.item.id == NEW_TAG_ID && ( + } + /> + )} + + {t.item.id == NEW_TAG_ID + ? `Create new tag '${t.item.name}'` + : t.item.name} + + + + )} + /> ); };