fix: Update PrimeReact and fix all compilation errors
This commit is contained in:
4
app/(main)/dashboard/stocks/page.tsx
Normal file → Executable file
4
app/(main)/dashboard/stocks/page.tsx
Normal file → Executable file
@@ -15,7 +15,7 @@ import { Toast } from 'primereact/toast';
|
||||
import { Menu } from 'primereact/menu';
|
||||
import { Badge } from 'primereact/badge';
|
||||
import { useStocks } from '../../../../hooks/useStocks';
|
||||
import { Stock, StockAlert, StockStats } from '../../../../types/stocks';
|
||||
import { Stock, StockAlert, StockStats, StatutStock, CategorieStock } from '../../../../types/stocks';
|
||||
|
||||
const DashboardStocksPage = () => {
|
||||
const { stocks, loading, refresh, entreeStock, sortieStock, inventaire, reserverStock } = useStocks();
|
||||
@@ -67,7 +67,7 @@ const DashboardStocksPage = () => {
|
||||
};
|
||||
|
||||
const statutTemplate = (stock: Stock) => {
|
||||
return <Tag value={stock.statut} severity={statutColors[stock.statut]} />;
|
||||
return <Tag value={stock.statut} severity={statutColors[stock.statut] as any} />;
|
||||
};
|
||||
|
||||
const categorieTemplate = (stock: Stock) => {
|
||||
|
||||
Reference in New Issue
Block a user