diff --git a/src/pages/Directory/Directory.jsx b/src/pages/Directory/Directory.jsx index dfbcbb81..c3e3830f 100644 --- a/src/pages/Directory/Directory.jsx +++ b/src/pages/Directory/Directory.jsx @@ -16,7 +16,9 @@ import { ITEMS_PER_PAGE } from "../../utils/constants"; import ProfileContactDirectory from "../../components/Directory/ProfileContactDirectory"; import ConfirmModal from "../../components/common/ConfirmModal"; -const Directory = () => { +const Directory = () => +{ + const[IsActivite,setIsActive] = useState(true) const [isOpenModal, setIsOpenModal] = useState(false); const [isOpenModalNote, setIsOpenModalNote] = useState(false); const [selectedContact, setSelectedContact] = useState(null); @@ -32,7 +34,7 @@ const Directory = () => { const [tempSelectedBucketIds, setTempSelectedBucketIds] = useState([]); const [tempSelectedCategoryIds, setTempSelectedCategoryIds] = useState([]); - const { contacts, loading } = useDirectory(); + const { contacts, loading } = useDirectory(IsActivite); const { contactCategory, loading: contactCategoryLoading } = useContactCategory(); const { buckets } = useBuckets(); @@ -247,7 +249,7 @@ const Directory = () => { )} -
+
{
    -

    Filter by

    +

    Filter by

    {/* Bucket Filter */}
    @@ -377,17 +379,17 @@ const Directory = () => {
    -
    ) : (
    - {currentItems.map((contact, index) => ( + {!loading && currentItems.map((contact, index) => (