refactor(CardList): replace ProductCard with ListaProductCard
Updated CardList component to use ListaProductCard instead of ProductCard for rendering products, improving component specificity for list views. Also adjusted indentation for consistency.
This commit is contained in:
1 parent
9a4e4c762e
commit
166abeb64e
24 files changed
+554
-716
No files matched your search
+1
-1
@@ -10,7 +10,7 @@ interface CountryInfo {
|
||||
|
||||
// Cache para evitar múltiplas requisições
|
||||
const CACHE_KEY = "nutriscan_user_country";
|
||||
const CACHE_DURATION = 24 * 60 * 60 * 1000; // 24 horas
|
||||
const CACHE_DURATION = 7 * 24 * 60 * 60 * 1000; // 7 dias
|
||||
|
||||
/**
|
||||
* Verifica se o cache ainda é válido
|
||||
|
||||
+9
-1
@@ -41,8 +41,16 @@ export interface ProductFilters {
|
||||
| "brand"
|
||||
| "energy"
|
||||
| "fat"
|
||||
| "sugars";
|
||||
| "sugars"
|
||||
| "completeness"
|
||||
| "with_images"
|
||||
| "with_nutrition"
|
||||
| "eco_score"
|
||||
| "nova_group";
|
||||
sortOrder?: "asc" | "desc";
|
||||
|
||||
// Assinatura de índice para compatibilidade
|
||||
[key: string]: unknown;
|
||||
}
|
||||
|
||||
export interface FilterOption {
|
||||
|
||||
Reference in new issue
Block a user