mirror of
https://github.com/r-freeman/portfolio.git
synced 2024-11-11 18:45:41 +00:00
Fixed type issue with dashboard
This commit is contained in:
parent
3b837eeca5
commit
b2a2ad59ce
@ -21,7 +21,7 @@ export async function getDashboardData() {
|
|||||||
const metrics: Metric[] = [
|
const metrics: Metric[] = [
|
||||||
{
|
{
|
||||||
title: "Minutes listened",
|
title: "Minutes listened",
|
||||||
value: minutesListened,
|
value: +minutesListened,
|
||||||
group: "Spotify",
|
group: "Spotify",
|
||||||
href: "https://open.spotify.com/?"
|
href: "https://open.spotify.com/?"
|
||||||
},
|
},
|
||||||
@ -39,31 +39,31 @@ export async function getDashboardData() {
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Repos",
|
title: "Repos",
|
||||||
value: totalRepos,
|
value: +totalRepos,
|
||||||
group: "GitHub",
|
group: "GitHub",
|
||||||
href: "https://github.com/r-freeman?tab=repositories"
|
href: "https://github.com/r-freeman?tab=repositories"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Followers",
|
title: "Followers",
|
||||||
value: totalFollowers,
|
value: +totalFollowers,
|
||||||
group: "GitHub",
|
group: "GitHub",
|
||||||
href: "https://github.com/r-freeman?tab=followers"
|
href: "https://github.com/r-freeman?tab=followers"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Stars",
|
title: "Stars",
|
||||||
value: totalStars,
|
value: +totalStars,
|
||||||
group: "GitHub",
|
group: "GitHub",
|
||||||
href: "https://github.com/r-freeman/"
|
href: "https://github.com/r-freeman/"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Total articles",
|
title: "Total articles",
|
||||||
value: totalArticles,
|
value: +totalArticles,
|
||||||
group: "Blog",
|
group: "Blog",
|
||||||
href: "/writing"
|
href: "/writing"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "Total article views",
|
title: "Total article views",
|
||||||
value: totalArticleViews,
|
value: +totalArticleViews,
|
||||||
group: "Blog",
|
group: "Blog",
|
||||||
href: "/writing"
|
href: "/writing"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user