fixed chat item
This commit is contained in:
parent
b650affe09
commit
f86cc88e0b
@ -1,27 +1,25 @@
|
|||||||
"use client"
|
"use client";
|
||||||
|
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
import qs from "query-string";
|
import qs from "query-string";
|
||||||
import { useForm } from "react-hook-form";
|
import { useForm } from "react-hook-form";
|
||||||
import { zodResolver } from "@hookform/resolvers/zod";
|
import { zodResolver } from "@hookform/resolvers/zod";
|
||||||
|
|
||||||
import { Member, MemberRole, Profile } from "@prisma/client";
|
import { Member, MemberRole, Profile } from "@prisma/client";
|
||||||
import { UserAvatar } from "@/components/user-avatar";
|
|
||||||
import { ActionTooltip } from "@/components/action-tooltip";
|
|
||||||
import { Edit, FileIcon, ShieldAlert, ShieldCheck, Trash } from "lucide-react";
|
import { Edit, FileIcon, ShieldAlert, ShieldCheck, Trash } from "lucide-react";
|
||||||
import Image from "next/image";
|
import Image from "next/image";
|
||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { cn } from "@/lib/utils";
|
import { useRouter, useParams } from "next/navigation";
|
||||||
import { useRouter } from "next/navigation";
|
|
||||||
import { useParams } from "next/navigation";
|
|
||||||
|
|
||||||
|
import { UserAvatar } from "@/components/user-avatar";
|
||||||
|
import { ActionTooltip } from "@/components/action-tooltip";
|
||||||
|
import { cn } from "@/lib/utils";
|
||||||
import {
|
import {
|
||||||
Form,
|
Form,
|
||||||
FormControl,
|
FormControl,
|
||||||
FormField,
|
FormField,
|
||||||
FormItem,
|
FormItem,
|
||||||
} from "@/components/ui/form"
|
} from "@/components/ui/form";
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { useModal } from "@/hooks/use-modal-store";
|
import { useModal } from "@/hooks/use-modal-store";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user