Обновлен Dockerfile для установки wget и добавлены зависимости в компонентах. Исправлены зависимости в хуках и компонентах, улучшено логирование и обработка ошибок. Удалены неиспользуемые импорты и оптимизированы некоторые функции. Обновлены компоненты для работы с изображениями и улучшена структура кода.

This commit is contained in:
Bivekich
2025-07-17 11:18:32 +03:00
parent 99e91287f3
commit 83ed577a44
24 changed files with 80 additions and 119 deletions

View File

@ -8,7 +8,7 @@ import { DashboardHome } from './dashboard-home'
export type DashboardSection = 'home' | 'settings'
export function Dashboard() {
const [activeSection, setActiveSection] = useState<DashboardSection>('home')
const [activeSection] = useState<DashboardSection>('home')
const renderContent = () => {
switch (activeSection) {

View File

@ -3,13 +3,12 @@
import { useAuth } from '@/hooks/useAuth'
import { Button } from '@/components/ui/button'
import { Card } from '@/components/ui/card'
import { Separator } from '@/components/ui/separator'
import { Avatar, AvatarImage, AvatarFallback } from '@/components/ui/avatar'
import { useRouter, usePathname } from 'next/navigation'
import {
Settings,
LogOut,
Building2,
Store,
MessageCircle,
Wrench

View File

@ -32,10 +32,10 @@ import {
RefreshCw,
Calendar,
Settings,
Upload,
Camera
} from 'lucide-react'
import { useState, useEffect } from 'react'
import Image from 'next/image'
export function UserSettings() {
const { user } = useAuth()
@ -662,9 +662,11 @@ export function UserSettings() {
<div className="relative">
<Avatar className="h-16 w-16">
{user?.avatar ? (
<img
<Image
src={user.avatar}
alt="Аватар"
width={64}
height={64}
className="w-full h-full object-cover rounded-full"
/>
) : (