1
0
mirror of https://github.com/uetchy/namae.git synced 2025-03-17 12:30:32 +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.length > 0 ? (
apps.map((app) => ( apps.map((app) => (
<Result <Result
title={app.name} title={app.name.split(/[-–—\-:]/)[0]}
message={`Price: ${app.price}`} message={`Price: ${app.price}`}
link={app.viewURL} link={app.viewURL}
icon={<FaAppStore />} icon={<FaAppStore />}

View File

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