Skip to content

Commit

Permalink
Fix some lints
Browse files Browse the repository at this point in the history
  • Loading branch information
shaldengeki committed Sep 29, 2024
1 parent ec3e4f8 commit 75ebb73
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { Link } from 'react-router-dom';

import {getDate} from '../DateUtils';
import GameLogArchive from '../types/GameLogArchive';
import User from '../types/User';
import Table from './Table';

type GameLogArchivesTableParams = {
Expand Down
2 changes: 1 addition & 1 deletion ark_nova_stats/frontend/src/views/CardsView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const CardsView = () => {
const cards: Card[] = data.cards;
const tableColumns = ["Name", "Most played by"];
const cardRows = cards.map((card: Card) => {
const mostPlayedUser: User = data.cards.find((c: any) => {c.bgaId === card.bgaId}).mostPlayedBy[0];
const mostPlayedUser: User = data.cards.find((c: any) => {return c.bgaId === card.bgaId}).mostPlayedBy[0];
return {
"Name": <Link to={`/card/${card.bgaId}`}>{card.name}</Link>,
"Most played by": <Link to={`user/${mostPlayedUser.name}`}>{mostPlayedUser.name}</Link>
Expand Down
3 changes: 0 additions & 3 deletions ark_nova_stats/frontend/src/views/HomeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ export const HOME_VIEW_QUERY = gql`



type HomeViewParams = {
}

const HomeView = () => {
const { loading, error, data } = useQuery(
HOME_VIEW_QUERY,
Expand Down

0 comments on commit 75ebb73

Please sign in to comment.