Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 15 additions & 3 deletions src/components/LatestRelease/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@ function LatestReleaseButton() {
"https://github.com/evo-lua/evo-runtime/releases"
);
const [releaseInfo, setReleaseInfo] = useState(
"Fetching latest release info..."
<>
Fetching latest release info...
<br />
(JavaScript must be enabled for this to work)
</>
);
const [assets, setAssets] = useState([]);

Expand All @@ -26,7 +30,12 @@ function LatestReleaseButton() {

setDownloadUrl(releaseUrl);
setReleaseInfo(
`Latest Release: ${releaseTag} (${releaseDate.toDateString()} · ${humanReadableTimeDifference} ago)`
<>
Latest Release:
<br />
{releaseTag} ({releaseDate.toDateString()} ·{" "}
{humanReadableTimeDifference} ago)
</>
);
})
.catch((error) => {
Expand All @@ -51,14 +60,17 @@ function LatestReleaseButton() {
</a>
<div>
<a className="hero-button" href={getAssetDownloadUrl("exe")}>
Download for Windows (x64)
Download for Windows
</a>
<a className="hero-button" href={getAssetDownloadUrl("linux-x64")}>
Download for Linux (x64)
</a>
<a className="hero-button" href={getAssetDownloadUrl("macos-x64")}>
Download for Mac OS (x64)
</a>
<a className="hero-button" href={getAssetDownloadUrl("macos-M1")}>
Download for Mac OS (M1)
</a>
</div>
</div>
);
Expand Down