mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-18 05:40:31 +00:00
- Organize database seeds.
- Optimize design dashboard top bar.
This commit is contained in:
@@ -25,6 +25,14 @@ function DashboardTopbar({
|
||||
const handlerClickEditView = () => {
|
||||
history.push(`/dashboard/custom_views/${editViewId}/edit`)
|
||||
}
|
||||
|
||||
const maybleRenderPageSubtitle = pageSubtitle && (<h3>{ pageSubtitle }</h3>);
|
||||
const maybeRenderEditViewBtn = (pageSubtitle && editViewId) && (
|
||||
<Button
|
||||
className={Classes.MINIMAL + ' button--view-edit'}
|
||||
icon={<Icon icon="pen" iconSize={13} />}
|
||||
onClick={handlerClickEditView} />
|
||||
);
|
||||
return (
|
||||
<div class="dashboard__topbar">
|
||||
<div class="dashboard__topbar-left">
|
||||
@@ -39,17 +47,8 @@ function DashboardTopbar({
|
||||
|
||||
<div class="dashboard__title">
|
||||
<h1>{ pageTitle }</h1>
|
||||
|
||||
{ pageSubtitle && (
|
||||
<>
|
||||
<span class="sep"></span>
|
||||
<h3>{ pageSubtitle }</h3>
|
||||
<Button
|
||||
className="button--view-edit"
|
||||
icon={<Icon icon="pen" />}
|
||||
onClick={handlerClickEditView} />
|
||||
</>
|
||||
)}
|
||||
{maybleRenderPageSubtitle}
|
||||
{maybeRenderEditViewBtn}
|
||||
</div>
|
||||
|
||||
<div class="dashboard__breadcrumbs">
|
||||
|
||||
Reference in New Issue
Block a user