Skip to content

Commit

Permalink
resolve err
Browse files Browse the repository at this point in the history
  • Loading branch information
dhruv8433 committed Jun 17, 2024
1 parent c2cb210 commit 880219a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/AllPosts.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import appwriteService from "../appwrite/config";
import { Container, PostCard } from "../components";

function AllPosts() {
const [posts, setPosts] = useState<any[]>([]);
const [posts, setPosts] = useState([]);
const [searchTerm, setSearchTerm] = useState<string>("");

useEffect(() => {
Expand All @@ -14,7 +14,7 @@ function AllPosts() {
});
}, []);

const handleSearch = (e: React.ChangeEvent<HTMLInputElement>) => {
const handleSearch = (e) => {
setSearchTerm(e.target.value.toLowerCase());
};

Expand Down

0 comments on commit 880219a

Please sign in to comment.