diff --git a/client/src/pages/DogList.jsx b/client/src/pages/DogList.jsx index 5f09f22..9f0c7bf 100644 --- a/client/src/pages/DogList.jsx +++ b/client/src/pages/DogList.jsx @@ -2,6 +2,7 @@ import { useEffect, useState } from 'react' import { Link } from 'react-router-dom' import { Dog, Plus, Search } from 'lucide-react' import axios from 'axios' +import DogForm from '../components/DogForm' function DogList() { const [dogs, setDogs] = useState([]) @@ -47,6 +48,10 @@ function DogList() { setFilteredDogs(filtered) } + const handleSave = () => { + fetchDogs() + } + if (loading) { return
Loading dogs...
} @@ -111,6 +116,13 @@ function DogList() {

No dogs found matching your search criteria.

)} + + {showAddModal && ( + setShowAddModal(false)} + onSave={handleSave} + /> + )} ) }