diff --git a/src/components/Summary.tsx b/src/components/Summary.tsx index 2635252..43dbb66 100644 --- a/src/components/Summary.tsx +++ b/src/components/Summary.tsx @@ -1,15 +1,15 @@ -import React from 'react'; -import Loader from './Loader'; +import React from 'react' +import Loader from './Loader' interface SummaryProps { - loading: boolean; + loading: boolean userInfo: { - public_repos: number; - followers: number; - following: number; - total_stars: number; - } | null; - totalCommits: number; + public_repos: number + followers: number + following: number + total_stars: number + } | null + totalCommits: number } const Summary: React.FC = ({ @@ -25,7 +25,7 @@ const Summary: React.FC = ({ ) : ( userInfo && (
-
+
= ({ {userInfo.public_repos}

-
+
= ({ {userInfo.followers}

-
+
= ({ {userInfo.following}

-
+
= ({ {totalCommits}

-
+
= ({ ) )}
- ); -}; + ) +} -export default Summary; \ No newline at end of file +export default Summary