Hydrate .jsx button

This commit is contained in:
Dilson's Pickles
2024-05-22 20:08:05 +01:00
parent 7fe5a03d41
commit 62da9b93fd
2 changed files with 7 additions and 5 deletions

View File

@@ -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)}

View File

@@ -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>