diff options
author | 2020-09-30 21:25:05 +0100 | |
---|---|---|
committer | 2020-09-30 21:25:05 +0100 | |
commit | c47296a2b5e4bbc90df808ec751be58822490d51 (patch) | |
tree | c96f4c9bc75a6b50360eadaecba956df7225737b /src/pages/LandingPage.tsx | |
parent | Merge pull request #13 from python-discord/animation/scale-transition-effect (diff) |
Add dummy form data for fetching form listings
Diffstat (limited to 'src/pages/LandingPage.tsx')
-rw-r--r-- | src/pages/LandingPage.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/pages/LandingPage.tsx b/src/pages/LandingPage.tsx index 4a6e157..ef588f3 100644 --- a/src/pages/LandingPage.tsx +++ b/src/pages/LandingPage.tsx @@ -4,6 +4,8 @@ import { css, jsx } from "@emotion/core"; import HeaderBar from "../components/HeaderBar"; import FormListing from "../components/FormListing"; +import { getForms } from "../api/forms"; + function LandingPage() { return <div> <HeaderBar/> @@ -15,8 +17,11 @@ function LandingPage() { flex-direction: column; `}> <h1>Available Forms</h1> - <FormListing title="Ban Appeals" description="Appealing bans from the Discord server" open={true}/> - <FormListing title="Insights 2020" description="Insights about the Python Discord community" open={false}/> + + + {getForms().map(form => ( + <FormListing form={form}/> + ))} </div> </div> </div> |