aboutsummaryrefslogtreecommitdiffstats
path: root/src/pages
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2020-09-30 21:42:47 +0100
committerGravatar GitHub <[email protected]>2020-09-30 21:42:47 +0100
commitbd171ec8ff84acef0b566efded1c355b336ae127 (patch)
tree08590244748ba796cacb46fd85bc1b09269b0156 /src/pages
parentMerge pull request #13 from python-discord/animation/scale-transition-effect (diff)
parentUpdate tests with new FormListing props (diff)
Merge pull request #14 from python-discord/api/add-dummy-forms
Add dummy forms API
Diffstat (limited to 'src/pages')
-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>