From a9665df7e7bc8afbc09f733598a4964f60f493c8 Mon Sep 17 00:00:00 2001 From: Colin Megill Date: Tue, 17 Nov 2020 12:13:02 -0800 Subject: [PATCH] move create category to top --- client/src/components/categorical/index.js | 56 +++++++++++----------- 1 file changed, 29 insertions(+), 27 deletions(-) diff --git a/client/src/components/categorical/index.js b/client/src/components/categorical/index.js index 69a2a75a..602b21f7 100644 --- a/client/src/components/categorical/index.js +++ b/client/src/components/categorical/index.js @@ -182,6 +182,35 @@ class Categories extends React.Component { } /> + {writableCategoriesEnabled ? ( +
+ + + Create new category + + +
+ ) : null} + {/* READ ONLY CATEGORICAL FIELDS */} {/* this is duplicative but flat, could be abstracted */} {allCategoryNames.map((catName) => @@ -207,33 +236,6 @@ class Categories extends React.Component { /> ) : null )} - - {writableCategoriesEnabled ? ( - - - Create new category - - - ) : null} ); }