Skip to content

Commit

Permalink
skip add to path on windows (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
Himanshu-Singh-Chauhan authored and nang-dev committed Feb 4, 2025
1 parent eb70b99 commit 847ad50
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gui/src/pages/welcome/SetupPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import ImportExtensions from "./setup/ImportExtensions";
import AddToPath from "./setup/AddToPath";
import SignIn from "./setup/SignIn";
import InstallTools from "./setup/InstallTools";
import { getPlatform } from "@/util";

export default function SetupPage({ onNext }: { onNext: () => void }) {
const [currentFeature, setCurrentFeature] = useState(0);
Expand All @@ -31,7 +32,7 @@ export default function SetupPage({ onNext }: { onNext: () => void }) {
}
};

const setupSteps = [
const allSetupSteps = [
{
icon: <Move className="h-5 w-5" />,
title: "Import VSCode Extensions",
Expand All @@ -44,6 +45,7 @@ export default function SetupPage({ onNext }: { onNext: () => void }) {
title: "Add PearAI To Your Path",
description: "Easily open PearAI from the command line with 'pearai'.",
component: <AddToPath onNext={handleNextClick} />,
platformSpecific: "mac"
},
{
icon: <Download className="h-6 w-6" />,
Expand All @@ -59,6 +61,10 @@ export default function SetupPage({ onNext }: { onNext: () => void }) {
},
];

const setupSteps = allSetupSteps.filter(step =>
!step.platformSpecific || step.platformSpecific === getPlatform()
);

return (
<div className="flex w-full overflow-hidden text-foreground h-full">
<div className="w-[35%] flex flex-col">
Expand Down

0 comments on commit 847ad50

Please sign in to comment.