@@ -15,7 +15,7 @@ import {
1515} from "@mantine/core" ;
1616import React from "react" ;
1717import Link from "next/link" ;
18- import classes from "./nightlies .module.css" ;
18+ import classes from "./releases .module.css" ;
1919import {
2020 desktopLinks ,
2121 type DownloadLink ,
@@ -51,7 +51,7 @@ function DownloadLink({
5151 ) ;
5252}
5353
54- function NightlyRow ( release : GithubRelease ) {
54+ function ReleaseRow ( release : GithubRelease ) {
5555 // The nightly prefix is a bit superfluous here
5656 const name = release . name . replace ( / ^ N i g h t l y / , "" ) ;
5757 return (
@@ -86,7 +86,7 @@ function NightlyRow(release: GithubRelease) {
8686 ) ;
8787}
8888
89- function NightlyCompactBox ( release : GithubRelease ) {
89+ function ReleaseCompactBox ( release : GithubRelease ) {
9090 return (
9191 < >
9292 < Link href = { release . url } className = { classes . nameAsHeader } target = "_blank" >
@@ -114,7 +114,7 @@ function NightlyCompactBox(release: GithubRelease) {
114114 ) ;
115115}
116116
117- export function NightlyList ( { nightlies } : { nightlies : GithubRelease [ ] } ) {
117+ export function ReleaseList ( { releases } : { releases : GithubRelease [ ] } ) {
118118 return (
119119 < Stack >
120120 < Title id = "nightly-releases" > Nightly Releases</ Title >
@@ -123,11 +123,7 @@ export function NightlyList({ nightlies }: { nightlies: GithubRelease[] }) {
123123 latest Nightly release. These are automatically built every day
124124 (approximately midnight UTC), unless there are no changes on that day.{ " " }
125125 Older nightly releases are available on{ " " }
126- < Link
127- href = { githubReleasesUrl }
128- className = { classes . moreNightlies }
129- target = "_blank"
130- >
126+ < Link href = { githubReleasesUrl } target = "_blank" >
131127 GitHub
132128 </ Link >
133129 .
@@ -148,16 +144,16 @@ export function NightlyList({ nightlies }: { nightlies: GithubRelease[] }) {
148144 </ TableTr >
149145 </ TableThead >
150146 < TableTbody className = { classes . body } >
151- { nightlies . map ( ( nightly ) => (
152- < NightlyRow key = { nightly . id } { ...nightly } />
147+ { releases . map ( ( release ) => (
148+ < ReleaseRow key = { release . id } { ...release } />
153149 ) ) }
154150 </ TableTbody >
155151 </ Table >
156152
157153 < Stack hiddenFrom = "sm" >
158154 { /*Compact mobile view, because a table is far too wide*/ }
159- { nightlies . map ( ( nightly ) => (
160- < NightlyCompactBox key = { nightly . id } { ...nightly } />
155+ { releases . map ( ( release ) => (
156+ < ReleaseCompactBox key = { release . id } { ...release } />
161157 ) ) }
162158 </ Stack >
163159 </ Stack >
0 commit comments