diff --git a/app/pages/statistics.tsx b/app/pages/statistics.tsx index e86b686fb4..f853fe5faa 100644 --- a/app/pages/statistics.tsx +++ b/app/pages/statistics.tsx @@ -12,6 +12,7 @@ import { BANNER_MARGIN_TOP } from "@/components/presence"; import prisma from "@/db/client"; import { Serialized, deserializeProps, serializeProps } from "@/db/serialize"; import { useFlag } from "@/flags"; +import { Icon } from "@/icons"; import { Locale } from "@/locales/locales"; import { useLocale } from "@/src"; @@ -63,7 +64,7 @@ export const getServerSideProps: GetServerSideProps = async () => { _count: "desc", }, }, - take: 10, + take: 25, }) .then((rows) => rows.map((row) => { @@ -80,7 +81,7 @@ export const getServerSideProps: GetServerSideProps = async () => { WHERE viewed_at > CURRENT_DATE - INTERVAL '30 days' GROUP BY config_key ORDER BY view_count DESC - LIMIT 10; + LIMIT 25; `.then((rows) => { return ( rows as { @@ -264,20 +265,12 @@ const Statistics = (props: Serialized) => { {charts.mostPopularAllTime.length > 0 && ( [ chart.key, { count: chart.viewCount, - label: ( - - {chart.key} - - ), + label: , }, ])} columnName="Chart" @@ -286,20 +279,12 @@ const Statistics = (props: Serialized) => { {charts.mostPopularThisMonth.length > 0 && ( [ chart.key, { count: chart.viewCount, - label: ( - - {chart.key} - - ), + label: , }, ])} columnName="Chart" @@ -311,6 +296,30 @@ const Statistics = (props: Serialized) => { ); }; +const ChartLink = ({ + locale, + chartKey, +}: { + locale: Locale; + chartKey: string; +}) => { + return ( + + {chartKey} + + + ); +}; + export default Statistics; const formatYearMonth = (date: Date, { locale }: { locale: Locale }) => {