Files
TheGame/packages/web/components/Patron/PatronList.tsx
dan13ram c2e3782d28 added filters for /players page (#566)
* player filters for type and skills

* fetching multiple players in parallel

* removed tile fragment

* search by username or address

* better spacing

* availability filter

* timezone filter

* passing tests in ds

* submit form in search bar

* added better labels for timezone

* fixed test issue

* searching only if search >= 2 char

* meta select ds

* updated metabutton bg color

* parallel for > 50 only

* fix reset search filter
2021-05-19 20:49:06 +05:30

21 lines
484 B
TypeScript

import { SimpleGrid } from '@metafam/ds';
import { PatronTile } from 'components/Patron/PatronTile';
import { Patron } from 'graphql/types';
import React from 'react';
type Props = {
patrons: Array<Patron>;
};
export const PatronList: React.FC<Props> = ({ patrons }) => (
<SimpleGrid
columns={[1, null, 2, 3]}
spacing="8"
autoRows="minmax(35rem, auto)"
>
{patrons.map((p, i) => (
<PatronTile key={p.id} patron={p} index={i} />
))}
</SimpleGrid>
);