mirror of
https://github.com/MetaFam/TheGame.git
synced 2026-02-11 06:24:56 -05:00
* squash frontend changes * Style quest explorer * Style quest page * Dates * Dates * Typecheck * Prettier * Fix create page layout * Update only OPEN quests * Repetition info * Fix create quest errors * Quest form Textarea * Quest form Textarea * Truncate texts * Redirect if user not logged in * Tooltips * Factorize skills tags * fix username in completions * Metafam as default guild on creation * Layouts * Remove todo * cooldown * Rename to "claim quest" * squash frontend changes * Style quest explorer * Style quest page * Dates * Dates * Typecheck * Prettier * Fix create page layout * Update only OPEN quests * Repetition info * Fix create quest errors * Quest form Textarea * Quest form Textarea * Truncate texts * Redirect if user not logged in * Tooltips * Factorize skills tags * fix username in completions * Metafam as default guild on creation * Layouts * Remove todo * cooldown * Rename to "claim quest" * Move ConfirmModal in ds * Extract pSeed balance * Fix "created by me" switch * Reword complete quest * Style quest form * prettier * lint
30 lines
668 B
TypeScript
30 lines
668 B
TypeScript
import { Box, SimpleGrid, Text } from '@metafam/ds';
|
|
import { QuestTile } from 'components/Quest/QuestTile';
|
|
import { QuestFragmentFragment } from 'graphql/autogen/types';
|
|
import React from 'react';
|
|
|
|
type Props = {
|
|
quests: QuestFragmentFragment[];
|
|
};
|
|
|
|
/* TODO
|
|
- infinite scroll
|
|
*/
|
|
export const QuestList: React.FC<Props> = ({ quests }) => (
|
|
<Box>
|
|
{quests.length > 0 ? (
|
|
<SimpleGrid
|
|
columns={[1, null, 2, 3]}
|
|
spacing="8"
|
|
autoRows="minmax(30rem, auto)"
|
|
>
|
|
{quests.map((q) => (
|
|
<QuestTile key={q.id} quest={q} />
|
|
))}
|
|
</SimpleGrid>
|
|
) : (
|
|
<Text>No quests found</Text>
|
|
)}
|
|
</Box>
|
|
);
|