Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.0.6 #28

Merged
merged 3 commits into from
Dec 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading