Удалены неиспользуемые импорты из компонентов, обновлены обработчики событий для улучшения логики работы с чекбоксами. Оптимизированы импорты аватаров в компонентах карточек и иконок для повышения читаемости кода.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
"use client"
|
||||
|
||||
import { useState } from 'react'
|
||||
|
||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from '@/components/ui/tabs'
|
||||
import { ButtonsDemo } from './ui-kit/buttons-demo'
|
||||
import { FormsDemo } from './ui-kit/forms-demo'
|
||||
|
@ -3,7 +3,7 @@
|
||||
import { Card, CardContent, CardDescription, CardHeader, CardTitle } from '@/components/ui/card'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import { Badge } from '@/components/ui/badge'
|
||||
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
|
||||
import { Avatar, AvatarFallback } from '@/components/ui/avatar'
|
||||
import { Progress } from '@/components/ui/progress'
|
||||
import {
|
||||
Heart,
|
||||
|
@ -222,7 +222,7 @@ export function FormsDemo() {
|
||||
<Checkbox
|
||||
id="checkbox1"
|
||||
checked={checkboxValue}
|
||||
onCheckedChange={setCheckboxValue}
|
||||
onCheckedChange={(checked) => setCheckboxValue(!!checked)}
|
||||
/>
|
||||
<Label
|
||||
htmlFor="checkbox1"
|
||||
|
@ -1,7 +1,7 @@
|
||||
"use client"
|
||||
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'
|
||||
import { Avatar, AvatarFallback, AvatarImage } from '@/components/ui/avatar'
|
||||
import { Avatar, AvatarFallback } from '@/components/ui/avatar'
|
||||
import { Badge } from '@/components/ui/badge'
|
||||
import { Button } from '@/components/ui/button'
|
||||
import {
|
||||
|
Reference in New Issue
Block a user