feat: auth & admin

This commit is contained in:
2026-06-03 10:41:53 +03:00
parent 612d0f0125
commit 7dc59fb3c4
120 changed files with 4683 additions and 2159 deletions
@@ -13,31 +13,21 @@ Extract static JSX outside components to avoid re-creation.
```tsx
function LoadingSkeleton() {
return <div className="animate-pulse h-20 bg-gray-200" />
return <div className="animate-pulse h-20 bg-gray-200" />;
}
function Container() {
return (
<div>
{loading && <LoadingSkeleton />}
</div>
)
return <div>{loading && <LoadingSkeleton />}</div>;
}
```
**Correct (reuses same element):**
```tsx
const loadingSkeleton = (
<div className="animate-pulse h-20 bg-gray-200" />
)
const loadingSkeleton = <div className="animate-pulse h-20 bg-gray-200" />;
function Container() {
return (
<div>
{loading && loadingSkeleton}
</div>
)
return <div>{loading && loadingSkeleton}</div>;
}
```