chore: format project automatically before starting dev server

This commit is contained in:
2026-09-16 14:14:04 +03:30
parent 7c55b3916c
commit 812029fe84
66 changed files with 2088 additions and 1125 deletions
+16 -2
View File
@@ -5,7 +5,17 @@ import Link from 'next/link';
import {useRouter} from 'next/navigation';
import {useAuth} from '@/app/context/AuthContext';
export default function ProtectedLink({href, children, className, onClick}: {href: string; children: ReactNode; className?: string; onClick?: () => void}) {
export default function ProtectedLink({
href,
children,
className,
onClick,
}: {
href: string;
children: ReactNode;
className?: string;
onClick?: () => void;
}) {
const auth = useAuth();
const router = useRouter();
const handleClick = (event: MouseEvent<HTMLAnchorElement>) => {
@@ -15,5 +25,9 @@ export default function ProtectedLink({href, children, className, onClick}: {hre
auth.openLogin(() => router.push(href));
}
};
return <Link href={href} className={className} onClick={handleClick}>{children}</Link>;
return (
<Link href={href} className={className} onClick={handleClick}>
{children}
</Link>
);
}