components/leaderboard.tsx
Function LeaderBoard
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const LeaderBoard = () => {
const { data, isLoading, error } = useQuery({
queryKey: ["top-scores"],
queryFn: async () => {
const res = await axios.get<TScore[]>("/api/top-scores");
- Create a ticketCreate a ticket