Skip to content

Commit

Permalink
Remove useless changeemail api route
Browse files Browse the repository at this point in the history
  • Loading branch information
nekiro committed Nov 29, 2024
1 parent 1b425bc commit 180fcfa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 52 deletions.
41 changes: 0 additions & 41 deletions src/pages/api/account/changeemail.ts

This file was deleted.

18 changes: 7 additions & 11 deletions src/pages/community/highscores.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ import StrippedTable from "@component/StrippedTable";
import { Box, Button, ButtonGroup, Flex, Heading, Text } from "@chakra-ui/react";
import { getVocationNameById, Vocation } from "@shared/enums/Vocation";
import { trpc } from "@util/trpc";
import { Skill } from "@shared/enums/Skill";
import { getSkillKeyByValue } from "@shared/enums/Skill";
import { Skill, getSkillKeyByValue } from "@shared/enums/Skill";

const vocations: { label: string; value: Vocation | "all" }[] = [
{ label: "All", value: "all" },
Expand Down Expand Up @@ -84,15 +83,12 @@ export default function Highscores() {
<StrippedTable
isLoading={highscores.isLoading}
head={[{ text: "Rank" }, { text: "Name" }, { text: "Vocation" }, { text: "Level" }]}
body={
highscores.data &&
highscores.data.pages[0].players.map((player, index) => [
{ text: `${index + 1}` },
{ text: player.name, href: `/character/${player.name}` },
{ text: getVocationNameById(player.vocation) },
{ text: player.level },
])
}
body={highscores.data?.pages[0].players.map((player, index) => [
{ text: `${index + 1}` },
{ text: player.name, href: `/character/${player.name}` },
{ text: getVocationNameById(player.vocation) },
{ text: player.level },
])}
/>
</Panel>
</>
Expand Down

0 comments on commit 180fcfa

Please sign in to comment.