mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-23 23:18:18 +02:00
Merge pull request #197 from R0m1k3/1.1
Update announcement priorities and icons for better clarity
This commit is contained in:
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