This commit is contained in:
@@ -9,7 +9,7 @@ export async function getReports() {
|
||||
message: {
|
||||
include: {
|
||||
sender: {
|
||||
select: { id: true, name: true, email: true }
|
||||
select: { id: true, name: true, email: true, isSuspended: true }
|
||||
},
|
||||
conversation: {
|
||||
include: {
|
||||
|
||||
@@ -19,7 +19,7 @@ export default function RatingModerationButtons({ ratingId }: RatingModerationBu
|
||||
if (result.success) {
|
||||
toast.success(status === 'APPROVED' ? "Avis approuvé !" : "Avis rejeté.");
|
||||
} else {
|
||||
toast.error(result.error);
|
||||
toast.error(result.error || "Une erreur est survenue");
|
||||
}
|
||||
} catch (error) {
|
||||
toast.error("Erreur lors de l'opération");
|
||||
|
||||
@@ -22,7 +22,7 @@ const ReactQuill = dynamic(async () => {
|
||||
}, {
|
||||
ssr: false,
|
||||
loading: () => <div className="h-64 w-full bg-slate-900 animate-pulse rounded-lg border border-slate-700" />
|
||||
});
|
||||
}) as any;
|
||||
|
||||
interface RichTextEditorProps {
|
||||
value: string;
|
||||
|
||||
Reference in New Issue
Block a user