From b30f9f59b4f421769900ce534c6074489419bd10 Mon Sep 17 00:00:00 2001 From: Maciej Lenartowicz Date: Fri, 15 Nov 2019 08:55:24 +0000 Subject: [PATCH] Fix for withEither --- package-lock.json | 2 +- package.json | 2 +- src/bootstrap/Spinner.js | 6 +++--- src/utils/conditionalHOCs.js | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/package-lock.json b/package-lock.json index c8ff325..3669a8d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "foris", - "version": "1.3.1", + "version": "1.3.2", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 2e72014..0f1b608 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "foris", - "version": "1.3.1", + "version": "1.3.2", "description": "Set of components and utils for Foris and its plugins.", "author": "CZ.NIC, z.s.p.o.", "repository": { diff --git a/src/bootstrap/Spinner.js b/src/bootstrap/Spinner.js index 43ca59f..33cca31 100644 --- a/src/bootstrap/Spinner.js +++ b/src/bootstrap/Spinner.js @@ -24,18 +24,18 @@ Spinner.defaultProps = { }; export function Spinner({ - fullScreen, children, className, ...props + fullScreen, children, className, }) { if (!fullScreen) { return ( -
+
{children}
); } return ( -
+
{children}
diff --git a/src/utils/conditionalHOCs.js b/src/utils/conditionalHOCs.js index 4c38fb4..fcb4978 100644 --- a/src/utils/conditionalHOCs.js +++ b/src/utils/conditionalHOCs.js @@ -14,7 +14,7 @@ import { ErrorMessage } from "./ErrorMessage"; function withEither(conditionalFn, Either) { return (Component) => (props) => { if (conditionalFn(props)) { - return ; + return ; } return ; };