better brackets, info types
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
import { List, ListItem, Skeleton, Stack, Text } from "@mantine/core";
|
||||
import Avatar from "@/components/avatar";
|
||||
import { Team } from "@/features/teams/types";
|
||||
import { TeamInfo } from "@/features/teams/types";
|
||||
import { useNavigate } from "@tanstack/react-router";
|
||||
import { useCallback, useMemo } from "react";
|
||||
import React from "react";
|
||||
|
||||
interface TeamListItemProps {
|
||||
team: Team;
|
||||
team: TeamInfo;
|
||||
}
|
||||
const TeamListItem = React.memo(({ team }: TeamListItemProps) => {
|
||||
const playerNames = useMemo(
|
||||
@@ -29,7 +29,7 @@ const TeamListItem = React.memo(({ team }: TeamListItemProps) => {
|
||||
});
|
||||
|
||||
interface TeamListProps {
|
||||
teams: Team[];
|
||||
teams: TeamInfo[];
|
||||
loading?: boolean;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user