Skip to content

Commit

Permalink
Merge pull request #50 from oliv3340:feat-add-limit-size-to-project-a…
Browse files Browse the repository at this point in the history
…pi-query

feat: add limit size during project api call
  • Loading branch information
oliv3340 authored Mar 8, 2024
2 parents 001f9a9 + 79890ba commit f021570
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/ProjectSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,11 @@ export default function ProjectSection() {
const t = useTranslations("Projects")
const [repos, setRepos] = useState<any[]>([]);
useEffect(() => {
fetch('https://api.github.com/users/oliv3340/repos?sort=pushed')
fetch('https://api.github.com/users/oliv3340/repos?sort=pushed,limit=10')
.then((res) => {
return res.json();
})
.then((data) => {
console.log(data);
setRepos(data);
});
}, []);
Expand Down

0 comments on commit f021570

Please sign in to comment.