From c47296a2b5e4bbc90df808ec751be58822490d51 Mon Sep 17 00:00:00 2001
From: Joe Banks <joseph@josephbanks.me>
Date: Wed, 30 Sep 2020 21:25:05 +0100
Subject: Add dummy form data for fetching form listings

---
 src/pages/LandingPage.tsx | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

(limited to 'src/pages/LandingPage.tsx')

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>
-- 
cgit v1.2.3

