From ec32eb1262bdc1abd63f3d533af251574efade3e Mon Sep 17 00:00:00 2001 From: Andrew Nicolaou Date: Wed, 2 Oct 2019 18:01:52 +0300 Subject: [PATCH] Collection Create is a modal --- .../User/components/CollectionCreate.jsx | 72 +++++++++---------- client/modules/User/pages/DashboardView.jsx | 19 +++++ client/routes.jsx | 2 +- .../styles/components/_collection-create.scss | 3 + client/styles/main.scss | 1 + 5 files changed, 57 insertions(+), 40 deletions(-) create mode 100644 client/styles/components/_collection-create.scss diff --git a/client/modules/User/components/CollectionCreate.jsx b/client/modules/User/components/CollectionCreate.jsx index 139982b5..220dcfda 100644 --- a/client/modules/User/components/CollectionCreate.jsx +++ b/client/modules/User/components/CollectionCreate.jsx @@ -61,49 +61,43 @@ class CollectionCreate extends React.Component { const invalid = name === '' || name == null; return ( -
+
{this.getTitle()} - -
-

Create collection

+
+
+ {creationError && Couldn't create collection} +

+ + + {invalid && Collection name is required} +

+

+ +