aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages/LandingPage.tsx
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-09-30 21:25:05 +0100
committerGravatar Joe Banks <[email protected]>2020-09-30 21:25:05 +0100
commitc47296a2b5e4bbc90df808ec751be58822490d51 (patch)
treec96f4c9bc75a6b50360eadaecba956df7225737b /src/pages/LandingPage.tsx
parentMerge 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.tsx9
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>