Skip to content

Commit 4c67c7f

Browse files
committed
Swap button on modal
We want to direct users to the individual page rather than allowing downloads. Whoops
1 parent 3cbe9b4 commit 4c67c7f

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

app/ui/modal.tsx

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import Meta from './meta';
55
import SunParams from './sunparameters';
66
import FogParams from './fogparameters';
77
import MapList from './maplist';
8-
import DownloadButton from './downloadbutton';
8+
import ViewDetailsButton from './view-details-button';
99

1010
type MapLink = { name: string; url: string };
1111
type Meta = {
@@ -78,12 +78,10 @@ export default function Modal({ slug, onClose }: { slug: string; onClose: () =>
7878
)}
7979
</div>
8080

81-
{/* Download (never shrink) */}
82-
<DownloadButton
83-
href={`/Source_Skyboxes_NextJS/skyboxes/${slug}/downloads/${slug}.7z`}
84-
download
85-
size={meta?.fileSize}
86-
className="flex-shrink-0" /* ⬅️ keeps the button’s width */
81+
{/* View Details (never shrink) */}
82+
<ViewDetailsButton
83+
href={`/skybox/${slug}`}
84+
className="w-full sm:w-auto"
8785
/>
8886
</div>
8987

0 commit comments

Comments
 (0)