Skip to content
This repository has been archived by the owner on Apr 29, 2022. It is now read-only.

Commit

Permalink
Show login required modal on dashboard
Browse files Browse the repository at this point in the history
Fix #158
  • Loading branch information
leonardosfl committed Aug 5, 2020
1 parent 99405da commit eb31c92
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/components/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -167,6 +168,14 @@ export default function Dashboard() {
setShowLeftPanel(!showLeftPanel);
}}
/>
{loginModalOpenNext && (
<LoginRequiredModal
next={loginModalOpenNext}
onClose={() => {
setLoginModalOpenNext(null);
}}
/>
)}
<article className="toc-page__main">
<div className="toc-page__body">
<section className="dashboard home__main">
Expand Down

0 comments on commit eb31c92

Please sign in to comment.