1
0
mirror of https://github.com/uetchy/namae.git synced 2025-03-17 04:30:31 +09:00

fix: format result

This commit is contained in:
uetchy 2019-08-07 20:39:03 +09:00
parent 3e3171d553
commit b3328a1ce6
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ function Search({ query }) {
{apps.length > 0 ? (
apps.map((app) => (
<Result
title={app.name}
title={app.name.split(/[-–—\-:]/)[0]}
message={`Price: ${app.price}`}
link={app.viewURL}
icon={<FaAppStore />}

View File

@ -19,7 +19,7 @@ function Search({ query }) {
repos.map((repo) => (
<Result
title={repo.full_name}
message={`Star: ${repo.stargazers_count}`}
message={`${repo.description} (🌟${repo.stargazers_count})`}
link={repo.html_url}
icon={<FaGithub />}
key={repo.id}