30 | {unfollower?.login} 31 |
32 |33 | {unfollower?.html_url} 34 |
35 |161 | {body} 162 |
163 | ) 164 | }) 165 | FormMessage.displayName = "FormMessage" 166 | 167 | export { 168 | useFormField, 169 | Form, 170 | FormItem, 171 | FormLabel, 172 | FormControl, 173 | FormDescription, 174 | FormMessage, 175 | FormField, 176 | } 177 | -------------------------------------------------------------------------------- /src/components/Forms/InputForm.tsx: -------------------------------------------------------------------------------- 1 | "use client" 2 | import * as React from "react" 3 | import { zodResolver } from "@hookform/resolvers/zod" 4 | import { useForm } from "react-hook-form" 5 | import * as z from "zod" 6 | 7 | import CardDemo from "@/components/Cards/UserCard"; 8 | import SkeletonDemo from "@/components/Loading/Skeleton"; 9 | import { Button } from "@/components/ui/button" 10 | import { 11 | Form, FormControl, FormDescription, FormField, FormItem, FormLabel, FormMessage, 12 | } from "@/components/ui/form" 13 | import { Input } from "@/components/ui/input" 14 | 15 | const FormSchema = z.object({ 16 | username: z.string().min(1, { 17 | message: "Username must be at least 1 characters.", 18 | }), 19 | }) 20 | 21 | export default function InputForm() { 22 | const form = useForm{error}
124 | )} 125 | 126 | {loading ? ( 127 |No unfollowers found
142 | )} 143 | > 144 | ) 145 | } -------------------------------------------------------------------------------- /src/components/ui/toast.tsx: -------------------------------------------------------------------------------- 1 | import * as React from "react" 2 | import * as ToastPrimitives from "@radix-ui/react-toast" 3 | import { cva, type VariantProps } from "class-variance-authority" 4 | import { X } from "lucide-react" 5 | 6 | import { cn } from "@/lib/utils" 7 | 8 | const ToastProvider = ToastPrimitives.Provider 9 | 10 | const ToastViewport = React.forwardRef< 11 | React.ElementRef