Files
TheGame/packages/web/pages/patrons.tsx
Vyvy-vi 1e938bcbc3 chore: rebase and squash
feat: meta tags for player pages

feat: meta tags for quest pages

feat: meta tags for patrons page

fix: typos, extra tags

feat: HeadComponent for metadata

feat: HeadComponent in pages

Implements the HeadComponent from components/Seo.tsx to take props and render the relevant meta tags in the pages

fix: type-cast to string

fix: string for playersDescriptionmeta

fix: optional chaining player meta data

fix: text consistency and typo-fixes

fix: use player helpers for meta

feat: meta tags for guilds route

feat: meta tags for player pages

feat: meta tags for quest pages

feat: meta tags for patrons page

feat: HeadComponent in pages

Implements the HeadComponent from components/Seo.tsx to take props and render the relevant meta tags in the pages

fix: type-cast to string

fix: import Head in _app
2021-06-13 23:57:34 -06:00

32 lines
903 B
TypeScript

import { PageContainer } from 'components/Container';
import { PatronList } from 'components/Patron/PatronList';
import { HeadComponent } from 'components/Seo';
import { getPatrons } from 'graphql/getPatrons';
import { InferGetStaticPropsType } from 'next';
import React from 'react';
type Props = InferGetStaticPropsType<typeof getStaticProps>;
export const getStaticProps = async () => {
const patrons = await getPatrons();
return {
props: {
patrons,
},
revalidate: 1,
};
};
const PatronsPage: React.FC<Props> = ({ patrons }) => (
<PageContainer>
<HeadComponent
title="Metagame's Patrons"
description="Metagame is a Massive Online Coordination Game! Metagame's Patrons enable us to succeed by helping us with funds."
url="https://my.metagame.wtf/patrons"
/>
<PatronList patrons={patrons} />
</PageContainer>
);
export default PatronsPage;