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