mirror of
https://git.v0id.ovh/n3wt-innov/n3wt-school.git
synced 2026-01-28 23:43:22 +00:00
fix: Ordre des guardians lors de leur création / déselection correcte si
plusieurs guardians
This commit is contained in:
@ -1,6 +1,7 @@
|
||||
import { useEffect, useState } from 'react';
|
||||
import { motion } from 'framer-motion';
|
||||
import { X, CheckCircle, AlertCircle, Info, AlertTriangle } from 'lucide-react';
|
||||
import { errorMessages } from '@/utils/errorCodes';
|
||||
|
||||
const typeStyles = {
|
||||
success: {
|
||||
@ -26,6 +27,7 @@ export default function FlashNotification({
|
||||
title,
|
||||
message,
|
||||
type = 'info',
|
||||
errorCode,
|
||||
onClose,
|
||||
}) {
|
||||
const [isVisible, setIsVisible] = useState(true);
|
||||
@ -58,6 +60,12 @@ export default function FlashNotification({
|
||||
<div className="flex-1 w-96 p-4">
|
||||
<p className="font-bold text-black">{title}</p>
|
||||
<p className="text-gray-700">{message}</p>
|
||||
{type === 'error' && errorCode && (
|
||||
<div className="mt-2 text-xs text-gray-500">
|
||||
Code :{' '}
|
||||
<span className="font-mono font-bold">{errorCode}</span>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
{/* Bouton de fermeture */}
|
||||
<button
|
||||
|
||||
Reference in New Issue
Block a user