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:
parent
3e3171d553
commit
b3328a1ce6
@ -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 />}
|
||||||
|
@ -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}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user