Skip to content

Commit

Permalink
💄 Clean dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMazout committed May 8, 2024
1 parent 445fb9e commit b17d49e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 23 deletions.
22 changes: 1 addition & 21 deletions motivator/src/components/leaderboard/DataTableLeaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,19 +17,9 @@ import { Table, TableBody, TableCell, TableRow } from '@/components/ui/table'
import AddrAvatar from '@/components/globals/AddrAvatar'
import { SlCheck, SlClose } from 'react-icons/sl'

import SearchBar from '@/components/globals/SearchBar'
import { Label } from '@/components/ui/label'
import {
Pagination,
PaginationContent,
PaginationEllipsis,
PaginationItem,
PaginationLink,
PaginationNext,
PaginationPrevious,
} from '@/components/ui/pagination'

import { Input } from '../ui/input'
import { Button } from '../ui/button'

export type LeaderboardDatatable = {
id: string
Expand Down Expand Up @@ -70,10 +60,6 @@ export const columns: ColumnDef<LeaderboardDatatable>[] = [
{
accessorKey: 'rewardsReceived',
cell: ({ row }) => {
// const rewardsReceived = row.getValue(
// 'rewardsReceived'
// ) as LeaderboardDatatable['rewardsReceived']

const rewardsReceived = row?.original?.rewardsReceived

return (
Expand Down Expand Up @@ -113,9 +99,6 @@ export const columns: ColumnDef<LeaderboardDatatable>[] = [
{
accessorKey: 'rewardsReceived',
cell: ({ row }) => {
// const rewardsReceived = row.getValue(
// 'rewardsReceived'
// ) as LeaderboardDatatable['rewardsReceived']
const rewardsReceived = row?.original?.rewardsReceived
const total = rewardsReceived?.rewards + rewardsReceived?.audit
return (
Expand All @@ -138,9 +121,6 @@ export const columns: ColumnDef<LeaderboardDatatable>[] = [
accessorKey: 'isTestnetMember',
enableHiding: false,
cell: ({ row }) => {
// const isTestnetMember = row.getValue(
// 'stat'
// ) as LeaderboardDatatable['isTestnetMember']
const isTestnetMember = row?.original?.isTestnetMember
return (
<div className="flex items-center ">
Expand Down
2 changes: 1 addition & 1 deletion motivator/src/hooks/reward/useGetAllLeaderboardRewards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type Props = {
}

/**
* This hook is used to fetch the assessor slot of the assessor
* This hook is used to fetch All the data of the Leaderboard
* @param {Props} props
*
*
Expand Down
2 changes: 1 addition & 1 deletion motivator/src/hooks/reward/useGetRewardFromUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type Props = {
}

/**
* This hook is used to fetch the assessor slot of the assessor
* This hook is used to fetch the Rewards of the user
* @param {Props} props
*
*
Expand Down

0 comments on commit b17d49e

Please sign in to comment.