Merge pull request #654 from Klotske/fix-leaderboard-link

Fix link in LeaderboardTable
This commit is contained in:
Keith Stevens
2023-01-12 18:36:43 +09:00
committed by GitHub
@@ -1,4 +1,5 @@
import { Badge, Box, Image, Link, Stack, StackDivider, Text, useColorModeValue } from "@chakra-ui/react";
import NextLink from "next/link";
export function LeaderboardTable() {
const backgroundColor = useColorModeValue("white", "gray.700");
@@ -54,7 +55,7 @@ export function LeaderboardTable() {
<div className="flex flex-col gap-4">
<div className="flex items-end justify-between">
<Text className="text-2xl font-bold">Top 5 Contributors</Text>
<Link href="/leaderboard" _hover={{ textDecoration: "none" }}>
<Link as={NextLink} href="/leaderboard" _hover={{ textDecoration: "none" }}>
<Text color="blue.400" className="text-sm font-bold">
View All -&gt;
</Text>