Normalize to double quotes across all files with Prettier

This commit is contained in:
X4Lo committed 2026-06-21 22:28:08 +01:00
1 parent 73bff72cec
commit a5659cf4c8
190 files changed
+9523 -8859

No files matched your search

@@ -1,4 +1,4 @@
import { NavLink } from 'react-router-dom';
import { NavLink } from "react-router-dom";
import {
LayoutDashboard,
Home,
@@ -12,25 +12,25 @@ import {
Moon,
Sun,
Film,
} from 'lucide-react';
import { useThemeStore } from '@/stores/useThemeStore';
import { Separator } from '@/components/ui/separator';
} from "lucide-react";
import { useThemeStore } from "@/stores/useThemeStore";
import { Separator } from "@/components/ui/separator";
const mainNav = [
{ to: '/dashboard', icon: LayoutDashboard, label: 'Dashboard' },
{ to: '/', icon: Home, label: 'Home' },
{ to: "/dashboard", icon: LayoutDashboard, label: "Dashboard" },
{ to: "/", icon: Home, label: "Home" },
];
const libraryNav = [
{ to: '/library', icon: Library, label: 'Library' },
{ to: '/watchlist', icon: ListVideo, label: 'Watchlist' },
{ to: '/collections', icon: FolderOpen, label: 'Collections' },
{ to: '/media', icon: Image, label: 'Media' },
{ to: "/library", icon: Library, label: "Library" },
{ to: "/watchlist", icon: ListVideo, label: "Watchlist" },
{ to: "/collections", icon: FolderOpen, label: "Collections" },
{ to: "/media", icon: Image, label: "Media" },
];
const otherNav = [
{ to: '/calendar', icon: CalendarDays, label: 'Calendar' },
{ to: '/people', icon: Users, label: 'People' },
{ to: "/calendar", icon: CalendarDays, label: "Calendar" },
{ to: "/people", icon: Users, label: "People" },
];
function NavItem({
@@ -45,17 +45,19 @@ function NavItem({
return (
<NavLink
to={to}
end={to === '/'}
end={to === "/"}
className={({ isActive }) =>
`relative flex flex-col items-center gap-1 rounded-md px-2 py-2.5 transition-colors ${
isActive
? 'bg-sidebar-accent text-sidebar-primary'
: 'text-sidebar-foreground/50 hover:bg-sidebar-accent/40 hover:text-sidebar-foreground'
? "bg-sidebar-accent text-sidebar-primary"
: "text-sidebar-foreground/50 hover:bg-sidebar-accent/40 hover:text-sidebar-foreground"
}`
}
>
<Icon className="h-5 w-5 shrink-0" />
<span className="text-[10px] font-medium leading-none tracking-wide">{label}</span>
<span className="text-[10px] font-medium leading-none tracking-wide">
{label}
</span>
</NavLink>
);
}
@@ -97,13 +99,13 @@ export function Sidebar() {
className="w-full flex flex-col items-center gap-1 rounded-md px-2 py-2.5 text-sidebar-foreground/50 hover:bg-sidebar-accent/40 hover:text-sidebar-foreground transition-colors"
onClick={toggleTheme}
>
{theme === 'dark' ? (
{theme === "dark" ? (
<Sun className="h-5 w-5" />
) : (
<Moon className="h-5 w-5" />
)}
<span className="text-[10px] font-medium leading-none tracking-wide">
{theme === 'dark' ? 'Light' : 'Dark'}
{theme === "dark" ? "Light" : "Dark"}
</span>
</button>
<NavItem to="/settings" icon={Settings} label="Settings" />
@@ -126,13 +128,13 @@ function MobileNavItem({
return (
<NavLink
to={to}
end={to === '/'}
end={to === "/"}
onClick={onClick}
className={({ isActive }) =>
`flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm transition-colors ${
isActive
? 'bg-sidebar-accent text-sidebar-primary font-medium'
: 'text-sidebar-foreground/70 hover:bg-sidebar-accent/50 hover:text-sidebar-foreground'
? "bg-sidebar-accent text-sidebar-primary font-medium"
: "text-sidebar-foreground/70 hover:bg-sidebar-accent/50 hover:text-sidebar-foreground"
}`
}
>
@@ -142,7 +144,11 @@ function MobileNavItem({
);
}
export function MobileSidebarContent({ onNavigate }: { onNavigate: () => void }) {
export function MobileSidebarContent({
onNavigate,
}: {
onNavigate: () => void;
}) {
const { theme, toggleTheme } = useThemeStore();
return (
@@ -189,14 +195,19 @@ export function MobileSidebarContent({ onNavigate }: { onNavigate: () => void })
className="w-full flex items-center gap-3 rounded-lg px-3 py-2.5 text-sm text-sidebar-foreground/70 hover:bg-sidebar-accent/50 hover:text-sidebar-foreground transition-colors"
onClick={toggleTheme}
>
{theme === 'dark' ? (
{theme === "dark" ? (
<Sun className="h-4 w-4" />
) : (
<Moon className="h-4 w-4" />
)}
<span>{theme === 'dark' ? 'Light Mode' : 'Dark Mode'}</span>
<span>{theme === "dark" ? "Light Mode" : "Dark Mode"}</span>
</button>
<MobileNavItem to="/settings" icon={Settings} label="Settings" onClick={onNavigate} />
<MobileNavItem
to="/settings"
icon={Settings}
label="Settings"
onClick={onNavigate}
/>
</div>
</div>
);