diff --git a/src/app/about/statistics/components/github-dashboard/cards/followers.tsx b/src/app/about/statistics/components/github-dashboard/cards/followers.tsx index 50a8e6ef..66b1e8a0 100644 --- a/src/app/about/statistics/components/github-dashboard/cards/followers.tsx +++ b/src/app/about/statistics/components/github-dashboard/cards/followers.tsx @@ -5,7 +5,7 @@ import { placeholder } from '@/shared/lib/placeholder' import { shuffleArray } from '@/shared/lib/shuffleArray' import { getGithubFollowers, getGithubUserData } from '@/shared/lib/github' -const AVATAR_COUNT = 119 +const AVATAR_COUNT = 71 export async function Followers() { const { followers: followersNumber } = await getGithubUserData() diff --git a/src/app/about/statistics/components/github-dashboard/cards/graph.tsx b/src/app/about/statistics/components/github-dashboard/cards/graph.tsx index cf0a59ec..47acf8cc 100644 --- a/src/app/about/statistics/components/github-dashboard/cards/graph.tsx +++ b/src/app/about/statistics/components/github-dashboard/cards/graph.tsx @@ -1,8 +1,14 @@ -import Image from 'next/image' +'use client' + import { CalendarBlank } from '@phosphor-icons/react/dist/ssr' -import { placeholder } from '@/shared/lib/placeholder' +import GitHubCalendar from 'react-github-calendar' +import { useTheme } from 'next-themes' export function Graph() { + const { theme } = useTheme() + + const colorScheme = theme !== 'dark' && theme !== 'light' ? undefined : theme + return (