mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-11 17:27:31 +02:00
Update announcement priorities and icons for better clarity
Modify the AnnouncementCard component to change the 'error' type label and icon to 'Nouveauté' with a 'Sparkles' icon, and update the 'success' type to 'Important' with a 'Star' icon, aligning with user feedback for improved announcement categorization. Replit-Commit-Author: Agent Replit-Commit-Session-Id: e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/1957c339-2757-4d1f-8e92-e9f71a1ce58e/e437ffed-c31b-44eb-9fd5-b6f9faa8e7ce/6kmwY2j
This commit is contained in:
1 parent
ff08a168d4
commit
2e0823eef6
1 file changed
+12
-12
@@ -35,8 +35,8 @@ import {
|
||||
X,
|
||||
Info,
|
||||
AlertTriangle,
|
||||
CheckCircle,
|
||||
AlertCircle
|
||||
Star,
|
||||
Sparkles
|
||||
} from "lucide-react";
|
||||
import { useAuthUnified } from "@/hooks/useAuthUnified";
|
||||
import { useStore } from "@/components/Layout";
|
||||
@@ -67,10 +67,10 @@ const getPriorityConfig = (type: string) => {
|
||||
switch (type) {
|
||||
case 'error':
|
||||
return {
|
||||
label: 'Erreur',
|
||||
color: 'bg-red-100 text-red-800',
|
||||
icon: AlertCircle,
|
||||
iconColor: 'text-red-600'
|
||||
label: 'Nouveauté',
|
||||
color: 'bg-purple-100 text-purple-800',
|
||||
icon: Sparkles,
|
||||
iconColor: 'text-purple-600'
|
||||
};
|
||||
case 'warning':
|
||||
return {
|
||||
@@ -81,10 +81,10 @@ const getPriorityConfig = (type: string) => {
|
||||
};
|
||||
case 'success':
|
||||
return {
|
||||
label: 'Succès',
|
||||
color: 'bg-green-100 text-green-800',
|
||||
icon: CheckCircle,
|
||||
iconColor: 'text-green-600'
|
||||
label: 'Important',
|
||||
color: 'bg-red-100 text-red-800',
|
||||
icon: Star,
|
||||
iconColor: 'text-red-600'
|
||||
};
|
||||
case 'info':
|
||||
default:
|
||||
@@ -428,8 +428,8 @@ export default function AnnouncementCard() {
|
||||
<SelectContent>
|
||||
<SelectItem value="info">Information</SelectItem>
|
||||
<SelectItem value="warning">Attention</SelectItem>
|
||||
<SelectItem value="error">Erreur</SelectItem>
|
||||
<SelectItem value="success">Succès</SelectItem>
|
||||
<SelectItem value="error">Nouveauté</SelectItem>
|
||||
<SelectItem value="success">Important</SelectItem>
|
||||
</SelectContent>
|
||||
</Select>
|
||||
<FormMessage />
|
||||
|
||||
Reference in new issue
Block a user