edit fa post

This commit is contained in:
Kalle (Sendou)
2021-01-06 02:16:30 +02:00
parent a79ce2fa22
commit 41f6509ac8
2 changed files with 16 additions and 3 deletions

View File

@@ -16,7 +16,14 @@ const Banner = () => {
<a href="https://www.twitch.tv/endgametv1">
<Box bg={event.bg} p={2} fontWeight="bold" textAlign="center">
<MyContainer>
<Image w={10} h={10} mb={2} mx="auto" src={event.logoUrl} />
<Image
w={10}
h={10}
mb={2}
mx="auto"
src={event.logoUrl}
ignoreFallback
/>
{event.content}
</MyContainer>
</Box>

View File

@@ -28,10 +28,16 @@ const FreeAgentsPage = () => {
return (
<MyContainer>
{modalIsOpen && <FAModal onClose={() => setModalIsOpen(false)} />}
{modalIsOpen && (
<FAModal post={usersPost} onClose={() => setModalIsOpen(false)} />
)}
<Breadcrumbs pages={[{ name: t`Free Agents` }]} />
<Button onClick={() => setModalIsOpen(true)}>
<Trans>New free agent post</Trans>
{usersPost ? (
<Trans>Edit free agent post</Trans>
) : (
<Trans>New free agent post</Trans>
)}
</Button>
{[...data, ...data, ...data].map((post) => (
<FreeAgentCard post={post} />