diff --git a/src/components/Hack/HackActions.tsx b/src/components/Hack/HackActions.tsx index 5350143..1f2b8f4 100644 --- a/src/components/Hack/HackActions.tsx +++ b/src/components/Hack/HackActions.tsx @@ -172,6 +172,7 @@ const HackActions: React.FC = ({ title={title} version={version} author={author} + baseRomName={baseRomName} baseRomPlatform={platform} onPatch={onPatch} status={status} diff --git a/src/components/Hack/StickyActionBar.tsx b/src/components/Hack/StickyActionBar.tsx index 5efca52..508dcb6 100644 --- a/src/components/Hack/StickyActionBar.tsx +++ b/src/components/Hack/StickyActionBar.tsx @@ -4,10 +4,11 @@ import React from "react"; import { platformAccept } from "@/utils/idb"; import type { Platform } from "@/data/baseRoms"; -export default function StickyActionBar({ title, version, author, baseRomPlatform, onPatch, status, error, isLinked, romReady, onClickLink, supported, onUploadChange }: { +export default function StickyActionBar({ title, version, author, baseRomName, baseRomPlatform, onPatch, status, error, isLinked, romReady, onClickLink, supported, onUploadChange }: { title: string; version?: string; author: string; + baseRomName?: string | null; baseRomPlatform?: Platform; onPatch: () => void; status: "idle" | "ready" | "patching" | "done" | "downloading"; @@ -86,7 +87,13 @@ export default function StickyActionBar({ title, version, author, baseRomPlatfor onClick={() => uploadInputRef.current?.click()} className="w-5/6 mx-auto md:w-auto md:mx-0 rounded-md border border-[var(--border)] bg-[var(--surface-2)] px-3 py-2 text-foreground text-sm md:text-xs cursor-pointer hover:bg-[var(--surface-3)] hover:text-foreground/80 disabled:cursor-not-allowed disabled:opacity-60" > - Select Base ROM + {baseRomName ? ( + Select {baseRomName} ROM + ) : baseRomPlatform ? ( + Select {baseRomPlatform} ROM + ) : ( + Select Base ROM + )} )}