Merge pull request #215 from Vigneshk5/download-option
fix: download option for unsupported OS
This commit is contained in:
@@ -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">
|
||||||
|
|||||||
Reference in New Issue
Block a user