From da14b6ac5637e8cfc74fd827df16cf1df79430c4 Mon Sep 17 00:00:00 2001 From: Michel Weststrate Date: Mon, 2 Dec 2019 08:36:01 -0800 Subject: [PATCH] Fix App name prefilling, improve markdown layout Summary: Make sure appname is prefilled Slightly improved layout of markdown Reviewed By: jknoxville Differential Revision: D18761477 fbshipit-source-id: 00184a0a4c6d1b5a779c3d3168f587e75e363433 --- src/ui/components/AlternatingRows.tsx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ui/components/AlternatingRows.tsx b/src/ui/components/AlternatingRows.tsx index 02bf5100f..e7fb4157c 100644 --- a/src/ui/components/AlternatingRows.tsx +++ b/src/ui/components/AlternatingRows.tsx @@ -15,11 +15,11 @@ import {colors} from './colors'; /** * Displays all children in a bordered, zebra styled vertical layout */ -const AlternatingRows: React.FC<{children: React.ReactNode[]}> = ({ - children, -}) => ( +const AlternatingRows: React.FC<{ + children: React.ReactNode[] | React.ReactNode; +}> = ({children}) => ( - {children.map((child, idx) => ( + {(Array.isArray(children) ? children : [children]).map((child, idx) => (