improved filter/search function and used new pagination

This commit is contained in:
Florian Scholdei
2019-04-17 12:37:48 +02:00
parent cc8be054d1
commit fc48e1bbd7
3 changed files with 84 additions and 56 deletions

View File

@@ -46,7 +46,7 @@ export function fetchRepos(link: string) {
return fetchReposByLink(link);
}
export function fetchReposByPage(link: string, page: number, filter?: string) {
export function fetchReposByPage(link: string, page: number, filter?: any) {
if (filter) {
return fetchReposByLink(
`${link}?page=${page - 1}&q=${decodeURIComponent(filter)}`