Merge pull request #549 from R0m1k3/1.1

publicité
This commit is contained in:
LogiFlow authored and GitHub committed 2026-01-05 13:51:16 +01:00
commit 4070172cbc
2 files changed
+25 -2

No files matched your search

+3 -2
View File
@@ -34,9 +34,10 @@ export default function Publicities() {
// Seuls les admins peuvent modifier/supprimer
const canModify = user?.role === 'admin';
// Generate year options (2025 to 2035)
// Generate year options (current year - 2 to current year + 10)
const currentYear = new Date().getFullYear();
const yearOptions = Array.from({ length: 11 }, (_, i) => currentYear + i);
const startYear = currentYear - 2;
const yearOptions = Array.from({ length: 13 }, (_, i) => startYear + i);
const { data: publicities = [], isLoading } = useQuery({
queryKey: ['/api/publicities', selectedYear, selectedStoreId],