diff --git a/src/pages/AllPosts.jsx b/src/pages/AllPosts.jsx index 9b3b155..3709983 100644 --- a/src/pages/AllPosts.jsx +++ b/src/pages/AllPosts.jsx @@ -3,7 +3,7 @@ import appwriteService from "../appwrite/config"; import { Container, PostCard } from "../components"; function AllPosts() { - const [posts, setPosts] = useState([]); + const [posts, setPosts] = useState([]); const [searchTerm, setSearchTerm] = useState(""); useEffect(() => { @@ -14,7 +14,7 @@ function AllPosts() { }); }, []); - const handleSearch = (e: React.ChangeEvent) => { + const handleSearch = (e) => { setSearchTerm(e.target.value.toLowerCase()); };