Message lorsqu'aucun enregistrement présent
This commit is contained in:
@@ -2,6 +2,7 @@ import { useEffect, useMemo, useRef, useState } from 'react';
|
||||
import { usePagination } from '../hooks/usePagination.js';
|
||||
import Pagination from '../components/Pagination.jsx';
|
||||
import PageIcon from '../components/PageIcon.jsx';
|
||||
import EmptyState from '../components/EmptyState.jsx';
|
||||
import { useLocation, useNavigate } from 'react-router-dom';
|
||||
import { api } from '../api.js';
|
||||
import { useInvestisseur } from '../context/InvestisseurContext.jsx';
|
||||
@@ -882,6 +883,12 @@ export default function DepotsRetraits() {
|
||||
});
|
||||
};
|
||||
|
||||
if (!loading && plats.length === 0) return (
|
||||
<>
|
||||
<div className="topbar"><h2>Dépôts / Retraits</h2></div>
|
||||
<EmptyState />
|
||||
</>
|
||||
);
|
||||
return (
|
||||
<>
|
||||
<div className="topbar">
|
||||
|
||||
Reference in New Issue
Block a user