Skip to content

Commit 114317e

Browse files
committed
fix profile pie chart
1 parent 6038eeb commit 114317e

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

app/layout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const inter = Inter({ subsets: ['latin'] });
1717
export const metadata: Metadata = {
1818
title: 'GitRanks · GitHub Profile Analytics & Rankings',
1919
description:
20-
'Explore ranks based on stars, followers, contributions, and more. Dive into dynamic leaderboards and find out how you measure up against developers worldwide.',
20+
'Explore rankings based on stars, contributions, and followers. Dive into dynamic leaderboards to see how you rank against developers worldwide and within your own country.',
2121
};
2222

2323
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {

app/profile/[login]/page.tsx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@ import { NotFound } from './not-found';
1616
import { calculateTiers } from './utils/calculate-tiers/calculate-tiers';
1717
import { RankCard } from '../../../components/rank-card/rank-card';
1818

19-
// PROVISIONAL TAGS
20-
// contributions padding and border
21-
2219
// badges - tiers
2320
// messenger bots - tiers
2421
export default async function ProfileRanks({ params }: { params: Promise<{ login: string }> }) {

components/rank-chart/rank-chart.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,12 @@ import { toXY } from './rank-chart.utils';
2525
const PIE_DATA = TIER_NAMES?.reduce<ChartItemType[]>((acc, _, index) => {
2626
return [
2727
...acc,
28-
...Array.from({ length: LEVELS_PER_TIER }, (_, level) => ({ value: 1, tier: index + 1, level, isGap: false })),
28+
...Array.from({ length: LEVELS_PER_TIER }, (_, level) => ({
29+
value: 1,
30+
tier: index + 1,
31+
level: level + 1,
32+
isGap: false,
33+
})),
2934
{ value: 0, tier: index + 1, level: -1, isGap: true },
3035
];
3136
}, []);

0 commit comments

Comments
 (0)