From 608a451bd360ddab098c0281b458caeb830ed842 Mon Sep 17 00:00:00 2001 From: Mauro Balades Date: Fri, 2 Aug 2024 00:44:10 +0200 Subject: [PATCH] fix: Update architecture selection on download page --- src/components/download.tsx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/components/download.tsx b/src/components/download.tsx index 0fa3305..38f3da2 100644 --- a/src/components/download.tsx +++ b/src/components/download.tsx @@ -136,8 +136,8 @@ export default function DownloadPage() { releaseTarget = platform[arch]; } else { releaseTarget = platform[arch][selectedPlatform === "Windows" - ? windowsDownloadType as string - : linuxDownloadType as string]; + ? selectedWindowsDownloadType as string + : selectedLinuxDownloadType as string]; } console.log("Downloading: "); console.log("platform: ", selectedPlatform); @@ -247,12 +247,12 @@ export default function DownloadPage() { Select Architecture Choose the architecture of your device, either 32-bit or 64-bit.
-
setSelectedArchitecture("specific")} className={ny("select-none w-full h-full mb-2 p-5 flex flex-col items-center rounded-lg bg-background cursor-pointer border", selectedArchitecture === "64-bit" ? "border-blue-400" : "")}> +
setSelectedArchitecture("specific")} className={ny("select-none w-full h-full mb-2 p-5 flex flex-col items-center rounded-lg bg-background cursor-pointer border", selectedArchitecture === "specific" ? "border-blue-400" : "")}>

🚀

Optimized

Blazing fast and compatible with modern devices

-
setSelectedArchitecture("generic")} className={ny("select-none w-full h-full mb-2 ml-10 p-5 flex flex-col items-center rounded-lg bg-background cursor-pointer border", selectedArchitecture === "32-bit" ? "border-blue-400" : "")}> +
setSelectedArchitecture("generic")} className={ny("select-none w-full h-full mb-2 ml-10 p-5 flex flex-col items-center rounded-lg bg-background cursor-pointer border", selectedArchitecture === "generic" ? "border-blue-400" : "")}>

👴

Generic

Slow but compatible with older devices.

@@ -268,12 +268,12 @@ export default function DownloadPage() { Download Zen for MacOS Click the button below to download Zen for MacOS.
-
setSelectedArchitecture("specific")} className={ny("select-none w-full h-full mb-2 p-5 flex flex-col items-center rounded-lg bg-background cursor-pointer border", selectedArchitecture === "aarch64" ? "border-blue-400" : "")}> +
setSelectedArchitecture("specific")} className={ny("select-none w-full h-full mb-2 p-5 flex flex-col items-center rounded-lg bg-background cursor-pointer border", selectedArchitecture === "specific" ? "border-blue-400" : "")}>

🍏

aarch64

64-bit ARM architecture, for Apple's M1 or M2 chips

-
setSelectedArchitecture("generic")} className={ny("select-none w-full h-full mb-2 ml-10 p-5 flex flex-col items-center rounded-lg bg-background cursor-pointer border", selectedArchitecture === "64-bit" ? "border-blue-400" : "")}> +
setSelectedArchitecture("generic")} className={ny("select-none w-full h-full mb-2 ml-10 p-5 flex flex-col items-center rounded-lg bg-background cursor-pointer border", selectedArchitecture === "generic" ? "border-blue-400" : "")}>

x64

Intel

64-bit Intel architecture, for older Macs

@@ -314,7 +314,7 @@ export default function DownloadPage() { >Download Zen for Linux {selectedArchitecture} Choose the type of download you want for Zen for Linux.
-
setSelectedLinuxDownloadType("AppImage")} className={ny("select-none w-full h-full mb-2 p-5 flex flex-col items-center rounded-lg bg-background cursor-pointer border", selectedLinuxDownloadType === "AppImage" ? "border-blue-400" : "")}> +
setSelectedLinuxDownloadType("appimage")} className={ny("select-none w-full h-full mb-2 p-5 flex flex-col items-center rounded-lg bg-background cursor-pointer border", selectedLinuxDownloadType === "appimage" ? "border-blue-400" : "")}>

🚀

AppImage

Install Zen with a setup wizard