Skip to content

Commit 61a325e

Browse files
committed
Rename "nightlies" to "releases"
1 parent 9c9a72b commit 61a325e

File tree

3 files changed

+11
-15
lines changed

3 files changed

+11
-15
lines changed

src/app/downloads/page.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import {
1010
import classes from "./downloads.module.css";
1111
import React from "react";
1212
import { ExtensionList } from "@/app/downloads/extensions";
13-
import { NightlyList } from "@/app/downloads/nightlies";
13+
import { ReleaseList } from "@/app/downloads/releases";
1414
import Link from "next/link";
1515
import {
1616
desktopLinks,
@@ -106,7 +106,7 @@ export default async function Page() {
106106
<WebDownload latest={latest} />
107107
<DesktopDownload latest={latest} />
108108

109-
<NightlyList nightlies={nightlies} />
109+
<ReleaseList releases={nightlies} />
110110
</Stack>
111111
</Container>
112112
);

src/app/downloads/nightlies.tsx renamed to src/app/downloads/releases.tsx

+9-13
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from "@mantine/core";
1616
import React from "react";
1717
import Link from "next/link";
18-
import classes from "./nightlies.module.css";
18+
import classes from "./releases.module.css";
1919
import {
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(/^Nightly /, "");
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

Comments
 (0)