diff --git a/client/app/(bots)/bots/[id]/components/Tabs/TopVoters.jsx b/client/app/(bots)/bots/[id]/components/Tabs/TopVoters.jsx index aa64855e..43c2b9b7 100644 --- a/client/app/(bots)/bots/[id]/components/Tabs/TopVoters.jsx +++ b/client/app/(bots)/bots/[id]/components/Tabs/TopVoters.jsx @@ -5,6 +5,7 @@ import Image from 'next/image'; import { TbSquareRoundedChevronUp } from 'react-icons/tb'; import fetchVoters from '@/lib/request/bots/fetchVoters'; import { toast } from 'sonner'; +import Link from 'next/link'; export default function TopVoters({ bot }) { const [loading, setLoading] = useState(false); @@ -51,10 +52,11 @@ export default function TopVoters({ bot }) { ) : (
{voters.map((voter, index) => ( -
3 && voters.indexOf(voter) === 0 && 'border-x-2 border-t-2 border-yellow-500 odd:bg-yellow-500/10', @@ -90,7 +92,7 @@ export default function TopVoters({ bot }) { {voter.votes}
-
+ ))} )} diff --git a/client/app/(servers)/servers/[id]/components/Tabs/TopVoters.jsx b/client/app/(servers)/servers/[id]/components/Tabs/TopVoters.jsx index a16ac037..ad7631aa 100644 --- a/client/app/(servers)/servers/[id]/components/Tabs/TopVoters.jsx +++ b/client/app/(servers)/servers/[id]/components/Tabs/TopVoters.jsx @@ -5,6 +5,7 @@ import Image from 'next/image'; import { TbSquareRoundedChevronUp } from 'react-icons/tb'; import fetchVoters from '@/lib/request/servers/fetchVoters'; import { toast } from 'sonner'; +import Link from 'next/link'; export default function TopVoters({ server }) { const [loading, setLoading] = useState(false); @@ -51,10 +52,11 @@ export default function TopVoters({ server }) { ) : (
{voters.map((voter, index) => ( -
3 && voters.indexOf(voter) === 0 && 'border-x-2 border-t-2 border-yellow-500 odd:bg-yellow-500/10', @@ -90,7 +92,7 @@ export default function TopVoters({ server }) { {voter.votes}
-
+ ))} )}