From eb31c92ee3120ba9a5c32070fc4097523e4d0c15 Mon Sep 17 00:00:00 2001 From: leonardosfl Date: Wed, 5 Aug 2020 00:35:16 -0300 Subject: [PATCH] Show login required modal on dashboard Fix #158 --- src/components/dashboard.js | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/components/dashboard.js b/src/components/dashboard.js index 48afc7b..cd12d5b 100644 --- a/src/components/dashboard.js +++ b/src/components/dashboard.js @@ -27,6 +27,7 @@ import AddButton from './add-button'; import Banner from "./banner.js"; import Button from './button'; +import LoginRequiredModal from './login-required-modal'; import Checkbox from './checkbox'; import SortOptions from './sort-options'; import HeaderBar from './header-bar'; @@ -167,6 +168,14 @@ export default function Dashboard() { setShowLeftPanel(!showLeftPanel); }} /> + {loginModalOpenNext && ( + { + setLoginModalOpenNext(null); + }} + /> + )}