mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-19 13:08:23 +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,
|
X,
|
||||||
Info,
|
Info,
|
||||||
AlertTriangle,
|
AlertTriangle,
|
||||||
CheckCircle,
|
Star,
|
||||||
AlertCircle
|
Sparkles
|
||||||
} from "lucide-react";
|
} from "lucide-react";
|
||||||
import { useAuthUnified } from "@/hooks/useAuthUnified";
|
import { useAuthUnified } from "@/hooks/useAuthUnified";
|
||||||
import { useStore } from "@/components/Layout";
|
import { useStore } from "@/components/Layout";
|
||||||
@@ -67,10 +67,10 @@ const getPriorityConfig = (type: string) => {
|
|||||||
switch (type) {
|
switch (type) {
|
||||||
case 'error':
|
case 'error':
|
||||||
return {
|
return {
|
||||||
label: 'Erreur',
|
label: 'Nouveauté',
|
||||||
color: 'bg-red-100 text-red-800',
|
color: 'bg-purple-100 text-purple-800',
|
||||||
icon: AlertCircle,
|
icon: Sparkles,
|
||||||
iconColor: 'text-red-600'
|
iconColor: 'text-purple-600'
|
||||||
};
|
};
|
||||||
case 'warning':
|
case 'warning':
|
||||||
return {
|
return {
|
||||||
@@ -81,10 +81,10 @@ const getPriorityConfig = (type: string) => {
|
|||||||
};
|
};
|
||||||
case 'success':
|
case 'success':
|
||||||
return {
|
return {
|
||||||
label: 'Succès',
|
label: 'Important',
|
||||||
color: 'bg-green-100 text-green-800',
|
color: 'bg-red-100 text-red-800',
|
||||||
icon: CheckCircle,
|
icon: Star,
|
||||||
iconColor: 'text-green-600'
|
iconColor: 'text-red-600'
|
||||||
};
|
};
|
||||||
case 'info':
|
case 'info':
|
||||||
default:
|
default:
|
||||||
@@ -428,8 +428,8 @@ export default function AnnouncementCard() {
|
|||||||
<SelectContent>
|
<SelectContent>
|
||||||
<SelectItem value="info">Information</SelectItem>
|
<SelectItem value="info">Information</SelectItem>
|
||||||
<SelectItem value="warning">Attention</SelectItem>
|
<SelectItem value="warning">Attention</SelectItem>
|
||||||
<SelectItem value="error">Erreur</SelectItem>
|
<SelectItem value="error">Nouveauté</SelectItem>
|
||||||
<SelectItem value="success">Succès</SelectItem>
|
<SelectItem value="success">Important</SelectItem>
|
||||||
</SelectContent>
|
</SelectContent>
|
||||||
</Select>
|
</Select>
|
||||||
<FormMessage />
|
<FormMessage />
|
||||||
|
|||||||
Reference in new issue
Block a user