mirror of
https://github.com/audacity/audacity.github.io.git
synced 2026-06-15 20:23:54 -05:00
Hydrate .jsx button
This commit is contained in:
@@ -8,6 +8,7 @@ function DownloadMuseHubButton() {
|
||||
|
||||
useEffect(() => {
|
||||
setBrowserOS(platform.os.family);
|
||||
|
||||
}, []);
|
||||
|
||||
function handleButtonClick(href) {
|
||||
@@ -24,6 +25,7 @@ function DownloadMuseHubButton() {
|
||||
}
|
||||
|
||||
function renderButton(href) {
|
||||
|
||||
return (
|
||||
<a
|
||||
onClick={() => handleButtonClick(href)}
|
||||
|
||||
@@ -16,13 +16,13 @@ import DownloadMuseHubButton from "../button/DownloadMuseHubButton";
|
||||
</h1>
|
||||
|
||||
<div class="flex flex-col md:w-fit gap-4 items-center md:items-start">
|
||||
<DownloadMuseHubButton />
|
||||
<DownloadMuseHubButton client:load />
|
||||
<noscript>
|
||||
<DownloadMuseHubButton />
|
||||
<DownloadMuseHubButton client:load />
|
||||
</noscript>
|
||||
<DownloadButton />
|
||||
<DownloadButton client:load />
|
||||
<noscript>
|
||||
<DownloadButton />
|
||||
<DownloadButton client:load />
|
||||
</noscript>
|
||||
</div>
|
||||
</div>
|
||||
@@ -35,4 +35,4 @@ import DownloadMuseHubButton from "../button/DownloadMuseHubButton";
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user