mirror of
https://github.com/R0m1k3/LogiFlow.git
synced 2026-10-17 04:06:44 +02:00
publicité
This commit is contained in:
1 parent
5ab5b32ca5
commit
18c51959af
2 files changed
+25
-2
No files matched your search
@@ -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],
|
||||
|
||||
Reference in new issue
Block a user