mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-09 05:25:15 -05:00
* fixed update token on address change * fetching already set profile data in setup flow * select skills colors * showing more data on player tile * rename variables
17 lines
460 B
TypeScript
17 lines
460 B
TypeScript
import { SimpleGrid } from '@metafam/ds';
|
|
import { PlayerTile } from 'components/Player/PlayerTile';
|
|
import { PlayerFragmentFragment } from 'graphql/autogen/types';
|
|
import React from 'react';
|
|
|
|
type Props = {
|
|
players: PlayerFragmentFragment[];
|
|
};
|
|
|
|
export const PlayerList: React.FC<Props> = ({ players }) => (
|
|
<SimpleGrid columns={[1, null, 2, 3]} spacing="8">
|
|
{players.map((p) => (
|
|
<PlayerTile key={p.id} player={p} />
|
|
))}
|
|
</SimpleGrid>
|
|
);
|