fix: download option for unsupported OS

This commit is contained in:
Vigneshk5
2024-10-05 22:27:02 +05:30
parent a75ff38ae1
commit 7c8f2fed22

View File

@@ -579,7 +579,7 @@ export default function DownloadPage() {
</Button> </Button>
<Button <Button
onClick={() => continueFlow()} onClick={() => continueFlow()}
disabled={selectedPlatform === null} disabled={selectedPlatform === ""}
> >
{(flowIndex === 1 && platform === "MacOS") || flowIndex === 2 {(flowIndex === 1 && platform === "MacOS") || flowIndex === 2
? "Download 🥳" ? "Download 🥳"
@@ -587,6 +587,15 @@ export default function DownloadPage() {
</Button> </Button>
</div> </div>
)} )}
{selectedPlatform === "" && (
<div className="mt-5 flex items-center">
<InfoCircledIcon className="mr-2 size-4" />
<p className="text-muted-foreground">
Unfortunately, Zen Browser is not available for your platform at
this time.
</p>
</div>
)}
{(platform === "Linux" || platform === "Windows") && {(platform === "Linux" || platform === "Windows") &&
flowIndex === 1 && ( flowIndex === 1 && (
<div className="mt-5 flex items-center"> <div className="mt-5 flex items-center">