Skip to content

Commit

Permalink
Update dev-configuration.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
divanshu-go authored Dec 28, 2024
1 parent dd030c6 commit 2815847
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import React, { useEffect, useState } from "react";
import { ArrowUpRight } from "lucide-react";
import { open } from "@tauri-apps/plugin-shell";
import { platform } from "@tauri-apps/plugin-os";
import usePlatform from '@/lib/hooks/usePlatform';
import { CodeBlock } from "@/components/onboarding/single-codeblock";
import { DialogHeader, DialogTitle } from "@/components/ui/dialog";
import OnboardingNavigation from "@/components/onboarding/navigation";
Expand Down Expand Up @@ -125,7 +126,7 @@ const OnboardingDevConfig: React.FC<OnboardingDevConfigProps> = ({
</p>
<CodeBlock
className="rounded-md mt-2"
language={platform() === "windows" ? "powershell" : "bash"}
language={usePlatform() === "windows" ? "powershell" : "bash"}
value={instructions.command}
/>
</li>
Expand Down

0 comments on commit 2815847

Please sign in to comment.