From 9217a21282507e848591e540b51ff14f4fe1ba6d Mon Sep 17 00:00:00 2001 From: Tom Russell Date: Thu, 4 Apr 2019 13:16:04 +0100 Subject: [PATCH] Show list of fields in overview --- app/src/frontend/overview.js | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/app/src/frontend/overview.js b/app/src/frontend/overview.js index 0fed17f0..7f8623df 100644 --- a/app/src/frontend/overview.js +++ b/app/src/frontend/overview.js @@ -1,4 +1,4 @@ -import React from 'react'; +import React, { Fragment } from 'react'; import { NavLink, Redirect } from 'react-router-dom'; import Sidebar from './sidebar'; @@ -33,6 +33,8 @@ const Overview = (props) => { const OverviewSection = (props) => { const match = props.data_layer === props.slug; const inactive = props.inactive; + console.log(props.fields); + return (
@@ -64,7 +66,18 @@ const OverviewSection = (props) => {
{ (match && props.intro)? - (

{props.intro}

) + ( + +

{props.intro}

+
    + { + props.fields.map((field) => { + return (
  • {field.title}
  • ) + }) + } +
+
+ ) : null }