Skip to content

Commit

Permalink
Merge pull request #28 from namidapoo/dev
Browse files Browse the repository at this point in the history
Release `v1.0.6`
  • Loading branch information
namidapoo authored Dec 29, 2024
2 parents 7497d2a + cdc4203 commit c866b3e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 7 deletions.
10 changes: 7 additions & 3 deletions app/recap/components/graph/languages.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,13 @@ export const LanguagesUsageGraph: FC<Props> = ({ data }) => {
<CardHeader className="items-start pb-0">
<CardTitle>言語の使用率</CardTitle>
<CardDescription>
{limitedData.length === 0
? "データがありません。"
: `あなたが最も使用した言語は <b>${limitedData[0].language}</b> です。`}
{limitedData.length === 0 ? (
"データがありません。"
) : (
<>
あなたが最も使用した言語は <b>{limitedData[0].language}</b> です。
</>
)}
</CardDescription>
</CardHeader>
<CardContent className="flex-1 pb-0">
Expand Down
11 changes: 7 additions & 4 deletions app/recap/components/overview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -188,10 +188,13 @@ export const OverView: FC<Props> = async ({ data }) => {
<CardHeader>
<CardTitle>リポジトリごとの統計</CardTitle>
<CardDescription>
{data.repositoriesByCommitCount.length === 0
? "データがありません。"
: `あなたが最もコミットしたリポジトリは{" "}
<b>${data.repositoriesByCommitCount[0].nameWithOwner}</b> です。`}
{data.repositoriesByCommitCount.length === 0 ? (
"データがありません。"
) : (
<>
あなたが最もコミットしたリポジトリは <b>{data.repositoriesByCommitCount[0].nameWithOwner}</b> です。
</>
)}
</CardDescription>
</CardHeader>
<CardContent>
Expand Down

0 comments on commit c866b3e

Please sign in to comment.