diff --git a/frontend2/src/components/BattlecodeTable.tsx b/frontend2/src/components/BattlecodeTable.tsx index 5785bac61..026df510d 100644 --- a/frontend2/src/components/BattlecodeTable.tsx +++ b/frontend2/src/components/BattlecodeTable.tsx @@ -49,15 +49,15 @@ function BattlecodeTable({ className={ idx % 2 === 0 ? `bg-white border-b ${ - onRowClick !== undefined - ? "cursor-pointer hover:bg-gray-100 hover:text-gray-700" - : "" - }}` + onRowClick !== undefined + ? "cursor-pointer hover:bg-gray-100 hover:text-gray-700" + : "" + }}` : `bg-gray-50 border-b ${ - onRowClick !== undefined - ? "cursor-pointer hover:bg-gray-100 hover:text-gray-700" - : "" - }` + onRowClick !== undefined + ? "cursor-pointer hover:bg-gray-100 hover:text-gray-700" + : "" + }` } > {columns.map((col, idx) => ( diff --git a/frontend2/src/components/elements/Button.tsx b/frontend2/src/components/elements/Button.tsx index bb6793a68..3f7bb2820 100644 --- a/frontend2/src/components/elements/Button.tsx +++ b/frontend2/src/components/elements/Button.tsx @@ -1,4 +1,4 @@ -import React from 'react'; +import React from "react"; interface ButtonProps extends React.ComponentPropsWithoutRef<"button"> { variant?: string; @@ -7,12 +7,10 @@ interface ButtonProps extends React.ComponentPropsWithoutRef<"button"> { const variants: Record = { "": "bg-gray-50 text-gray-900 hover:bg-gray-100 ring-gray-300 ring-1 ring-inset", - "dark": "bg-gray-700 text-gray-50 hover:bg-gray-800" + dark: "bg-gray-700 text-gray-50 hover:bg-gray-800", }; -const Button: React.FC = ( - { variant, label, ...rest } -) => { +const Button: React.FC = ({ variant, label, ...rest }) => { variant = variant ?? ""; const variantStyle = variants[variant]; return ( diff --git a/frontend2/src/views/Rankings.tsx b/frontend2/src/views/Rankings.tsx index 85043fe3b..68fd7e59e 100644 --- a/frontend2/src/views/Rankings.tsx +++ b/frontend2/src/views/Rankings.tsx @@ -1,6 +1,6 @@ import React, { useContext, useEffect, useState } from "react"; import { EpisodeContext } from "../contexts/EpisodeContext"; -import { Api } from "../utils/api"; +import * as Api from "../utils/api"; import BattlecodeTable from "../components/BattlecodeTable"; import { type PaginatedTeamPublicList } from "../utils/types/model/PaginatedTeamPublicList"; import BattlecodeTableBottomElement from "../components/BattlecodeTableBottomElement";