Skip to content
Snippets Groups Projects
Commit 7a8a802b authored by Allen Gilliland's avatar Allen Gilliland
Browse files

provide an empty state view for recent views.

parent 3db5789c
Branches
Tags
No related merge requests found
......@@ -34,13 +34,20 @@ export default class RecentViews extends Component {
<span className="pl1">Recents</span>
</div>
<div className="bordered rounded bg-white">
<ul className="px3 py1">
{recentViews.map(item =>
<li key={item.id} className="py1">
<a className="link text-dark" href={Urls.modelToUrl(item.model, item.model_id)}>{item.model_object.name}</a>
</li>
)}
</ul>
{recentViews.length > 0 ?
<ul className="px3 py1">
{recentViews.map(item =>
<li key={item.id} className="py1">
<a className="link text-dark ml1" href={Urls.modelToUrl(item.model, item.model_id)}>{item.model_object.name}</a>
</li>
)}
</ul>
:
<div className="flex flex-column layout-centered text-normal text-grey-2">
<span className="QuestionCircle mt4">!</span>
<p className="p3 text-centered text-grey-4">You haven't looked at any Dashboards or Questions recently?</p>
</div>
}
</div>
</div>
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment