diff --git a/apps/amethyst/app/(tabs)/(stamp)/_layout.tsx b/apps/amethyst/app/(tabs)/(stamp)/_layout.tsx
index d57c110..7c4c5bd 100644
--- a/apps/amethyst/app/(tabs)/(stamp)/_layout.tsx
+++ b/apps/amethyst/app/(tabs)/(stamp)/_layout.tsx
@@ -21,7 +21,18 @@ const Layout = ({ segment }: { segment: string }) => {
}
}, [segment]);
- return {rootScreen};
+ return (
+
+ {rootScreen}
+
+ );
};
export default Layout;
diff --git a/apps/amethyst/app/(tabs)/(stamp)/stamp/_layout.tsx b/apps/amethyst/app/(tabs)/(stamp)/stamp/_layout.tsx
index ef8dc88..35f650e 100644
--- a/apps/amethyst/app/(tabs)/(stamp)/stamp/_layout.tsx
+++ b/apps/amethyst/app/(tabs)/(stamp)/stamp/_layout.tsx
@@ -27,7 +27,13 @@ const Layout = ({ segment }: { segment: string }) => {
});
return (
-
+
diff --git a/apps/amethyst/app/(tabs)/(stamp)/stamp/index.tsx b/apps/amethyst/app/(tabs)/(stamp)/stamp/index.tsx
index 0ebd5af..688f5af 100644
--- a/apps/amethyst/app/(tabs)/(stamp)/stamp/index.tsx
+++ b/apps/amethyst/app/(tabs)/(stamp)/stamp/index.tsx
@@ -1,6 +1,6 @@
import { Button } from "@/components/ui/button";
import { Icon } from "@/lib/icons/iconWithClassName";
-import { Stack, useRouter } from "expo-router";
+import { Link, Stack, useRouter } from "expo-router";
import { Check, ChevronDown, ChevronRight } from "lucide-react-native";
import React, { useContext, useEffect, useRef, useState } from "react";
@@ -16,6 +16,7 @@ import {
import { Text } from "@/components/ui/text";
import {
MusicBrainzRecording,
+ MusicBrainzRelease,
ReleaseSelections,
searchMusicbrainz,
SearchParams,
@@ -24,6 +25,7 @@ import {
import { BottomSheetModal, BottomSheetScrollView } from "@gorhom/bottom-sheet";
import SheetBackdrop, { SheetHandle } from "@/components/ui/sheetBackdrop";
import { StampContext, StampContextValue, StampStep } from "./_layout";
+import { ExternalLink } from "@/components/ExternalLink";
export default function StepOne() {
const router = useRouter();
@@ -45,6 +47,8 @@ export default function StepOne() {
{},
);
+ const [hasSearched, setHasSearched] = useState(false);
+
// reset search state if requested
useEffect(() => {
if (state.step === StampStep.IDLE && state.resetSearchState) {
@@ -65,6 +69,7 @@ export default function StepOne() {
const results = await searchMusicbrainz(searchFields);
setSearchResults(results);
setIsLoading(false);
+ setHasSearched(true);
};
const clearSearch = () => {
@@ -74,7 +79,7 @@ export default function StepOne() {
};
return (
-
+
{/* Search Form */}
-
+
Search for a track
+
+ setSearchFields((prev) => ({ ...prev, release: text }))
+ }
+ onKeyPress={(e) => {
+ if (e.nativeEvent.key === "Enter") {
+ handleSearch();
+ }
+ }}
+ />