diff --git a/api/services/playstore/[query].ts b/api/services/playstore/[query].ts index 33f6915..a37cf51 100644 --- a/api/services/playstore/[query].ts +++ b/api/services/playstore/[query].ts @@ -29,8 +29,8 @@ export default async function handler( const apps = response[0][1][0][0][0].map((entry: any) => ({ id: entry[12][0], name: entry[2], + description: entry[4][1][1][1][1], author: entry[4][0][0][0], - rating: entry[6][0][2][1][1], url: 'https://play.google.com' + entry[9][4][2], })); send(res, { result: apps.slice(0, 10) }); diff --git a/src/components/cards/providers/GitHubSearch.tsx b/src/components/cards/providers/GitHubSearch.tsx index 26b6c3e..7ef2d7a 100644 --- a/src/components/cards/providers/GitHubSearch.tsx +++ b/src/components/cards/providers/GitHubSearch.tsx @@ -39,7 +39,11 @@ const Search: React.FC<{ query: string }> = ({ query }) => { /> )) ) : ( - } /> + } + /> )} ); diff --git a/src/components/cards/providers/PlayStore.tsx b/src/components/cards/providers/PlayStore.tsx index de7ae88..8916548 100644 --- a/src/components/cards/providers/PlayStore.tsx +++ b/src/components/cards/providers/PlayStore.tsx @@ -13,8 +13,8 @@ const Search: React.FC<{ query: string }> = ({ query }) => { result: Array<{ id: string; name: string; + description: string; author: string; - rating: number; url: string; }>; }; @@ -26,14 +26,18 @@ const Search: React.FC<{ query: string }> = ({ query }) => { apps.map((app) => ( } key={app.id} /> )) ) : ( - } /> + } + /> )} );