(private repo) display if fav repo is priva…

This commit is contained in:
2021-03-19 23:54:20 +01:00
parent 68fdc6fda3
commit 2bd9cb8dd0
2 changed files with 78 additions and 50 deletions

View File

@@ -19,11 +19,13 @@ export const useRepos = () => {
per_page: 100
})
return repoList.data.items.map((item) => ({
id: `${item.id}`,
name: item.name,
isPrivate: item.private
}))
return repoList.data.items
.map((item) => ({
id: `${item.id}`,
name: item.name,
isPrivate: item.private
}))
.sort((a, b) => (a.name < b.name ? -1 : 1))
}, [])
return {