From b44325cce651e8fa7186f16f157e0c107a034420 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 8 Feb 2021 18:49:58 +0100 Subject: [PATCH] fix api url --- packages/dashboard/src/components/Form/Message.js | 2 +- packages/dashboard/src/pages/auth/login.js | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/dashboard/src/components/Form/Message.js b/packages/dashboard/src/components/Form/Message.js index d657125b..07e12f22 100644 --- a/packages/dashboard/src/components/Form/Message.js +++ b/packages/dashboard/src/components/Form/Message.js @@ -1,4 +1,4 @@ -export default function Message({ title, items = [] }) { +export default function Message({ type, title, items = [] }) { return (
diff --git a/packages/dashboard/src/pages/auth/login.js b/packages/dashboard/src/pages/auth/login.js index c80a7d69..7c598b48 100644 --- a/packages/dashboard/src/pages/auth/login.js +++ b/packages/dashboard/src/pages/auth/login.js @@ -146,9 +146,10 @@ export default function Login({ flow }) { Sign in - {Boolean(flow.methods.password.config.errors?.length) && ( - message)} /> - )} + {Boolean(flow.methods.password.config.messages?.length) && + flow.methods.password.config.messages.map((message) => ( + + ))}