@@ -15,7 +15,7 @@ import {
15
15
} from "@mantine/core" ;
16
16
import React from "react" ;
17
17
import Link from "next/link" ;
18
- import classes from "./nightlies .module.css" ;
18
+ import classes from "./releases .module.css" ;
19
19
import {
20
20
desktopLinks ,
21
21
type DownloadLink ,
@@ -51,7 +51,7 @@ function DownloadLink({
51
51
) ;
52
52
}
53
53
54
- function NightlyRow ( release : GithubRelease ) {
54
+ function ReleaseRow ( release : GithubRelease ) {
55
55
// The nightly prefix is a bit superfluous here
56
56
const name = release . name . replace ( / ^ N i g h t l y / , "" ) ;
57
57
return (
@@ -86,7 +86,7 @@ function NightlyRow(release: GithubRelease) {
86
86
) ;
87
87
}
88
88
89
- function NightlyCompactBox ( release : GithubRelease ) {
89
+ function ReleaseCompactBox ( release : GithubRelease ) {
90
90
return (
91
91
< >
92
92
< Link href = { release . url } className = { classes . nameAsHeader } target = "_blank" >
@@ -114,7 +114,7 @@ function NightlyCompactBox(release: GithubRelease) {
114
114
) ;
115
115
}
116
116
117
- export function NightlyList ( { nightlies } : { nightlies : GithubRelease [ ] } ) {
117
+ export function ReleaseList ( { releases } : { releases : GithubRelease [ ] } ) {
118
118
return (
119
119
< Stack >
120
120
< Title id = "nightly-releases" > Nightly Releases</ Title >
@@ -123,11 +123,7 @@ export function NightlyList({ nightlies }: { nightlies: GithubRelease[] }) {
123
123
latest Nightly release. These are automatically built every day
124
124
(approximately midnight UTC), unless there are no changes on that day.{ " " }
125
125
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" >
131
127
GitHub
132
128
</ Link >
133
129
.
@@ -148,16 +144,16 @@ export function NightlyList({ nightlies }: { nightlies: GithubRelease[] }) {
148
144
</ TableTr >
149
145
</ TableThead >
150
146
< TableTbody className = { classes . body } >
151
- { nightlies . map ( ( nightly ) => (
152
- < NightlyRow key = { nightly . id } { ...nightly } />
147
+ { releases . map ( ( release ) => (
148
+ < ReleaseRow key = { release . id } { ...release } />
153
149
) ) }
154
150
</ TableTbody >
155
151
</ Table >
156
152
157
153
< Stack hiddenFrom = "sm" >
158
154
{ /*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 } />
161
157
) ) }
162
158
</ Stack >
163
159
</ Stack >
0 commit comments