Skip to content

Commit bc17e6a

Browse files
committed
chore(misc): update dev checks and icon
- Replace process.env.NODE_ENV with import.meta.env.DEV - Replace GithubIcon with GitForkIcon from lucide-react
1 parent c2ff5d7 commit bc17e6a

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/components/TopBar.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DatabaseIcon, GithubIcon, SaveIcon } from "lucide-react";
1+
import { DatabaseIcon, GitForkIcon, SaveIcon } from "lucide-react";
22
import HighContrastToggle from "@/components/accessibility/HighContrastToggle";
33
import ModeToggle from "@/components/theme/ModeToggle";
44
import { Button } from "@/components/ui/button";
@@ -70,7 +70,7 @@ function TopBar() {
7070
tabIndex={-1}
7171
aria-hidden="true"
7272
>
73-
<GithubIcon className="h-4 w-4" />
73+
<GitForkIcon className="h-4 w-4" />
7474
</Button>
7575
</a>
7676

src/components/common/ErrorBoundary.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class ErrorBoundary extends Component<Props, State> {
4040
});
4141

4242
// Log error to console in development
43-
if (process.env.NODE_ENV === "development") {
43+
if (import.meta.env.DEV) {
4444
console.error("ErrorBoundary caught an error:", error, errorInfo);
4545
}
4646

@@ -90,7 +90,7 @@ class ErrorBoundary extends Component<Props, State> {
9090
</p>
9191
</div>
9292

93-
{process.env.NODE_ENV === "development" && this.state.error && (
93+
{import.meta.env.DEV && this.state.error && (
9494
<details className="bg-muted mt-4 rounded-lg p-4 text-left">
9595
<summary className="text-foreground cursor-pointer font-medium">
9696
Error Details (Development Only)

0 commit comments

Comments
 (0)