mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
fix: logo style.
fix: page forms style. feat: auto-fill items entries from item details. fix: hiding dashboard copyright bar.
This commit is contained in:
@@ -51,6 +51,6 @@ function Dashboard({
|
||||
<DrawersContainer />
|
||||
</DashboardLoadingIndicator>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export default compose(withSettingsActions)(Dashboard);
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
import React, { useEffect, Suspense } from 'react';
|
||||
import React from 'react';
|
||||
import { Route, Switch } from 'react-router-dom';
|
||||
import routes from 'routes/dashboard';
|
||||
|
||||
import DashboardPage from './DashboardPage';
|
||||
|
||||
/**
|
||||
@@ -18,6 +17,7 @@ export default function DashboardContentRoute() {
|
||||
path={`${route.path}`}
|
||||
>
|
||||
<DashboardPage
|
||||
name={route.name}
|
||||
Component={route.component}
|
||||
pageTitle={route.pageTitle}
|
||||
backLink={route.backLink}
|
||||
|
||||
@@ -6,14 +6,14 @@ import { For } from 'components';
|
||||
function FooterLinkItem({ title, link }) {
|
||||
return (
|
||||
<div class="">
|
||||
<a href={link} target="_blank">
|
||||
<a href={link} target="_blank" rel="noopener noreferrer">
|
||||
{title}
|
||||
</a>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export default function DashboardFooter({}) {
|
||||
export default function DashboardFooter() {
|
||||
return (
|
||||
<div class="dashboard__footer">
|
||||
<div class="footer-links">
|
||||
|
||||
@@ -11,6 +11,7 @@ function DashboardPage({
|
||||
backLink,
|
||||
sidebarShrink,
|
||||
Component,
|
||||
name,
|
||||
|
||||
// #withDashboardActions
|
||||
changePageTitle,
|
||||
@@ -44,6 +45,15 @@ function DashboardPage({
|
||||
};
|
||||
}, [resetSidebarPreviousExpand, sidebarShrink, setSidebarShrink]);
|
||||
|
||||
useEffect(() => {
|
||||
const className = `page-${name}`;
|
||||
name && document.body.classList.add(className);
|
||||
|
||||
return () => {
|
||||
name && document.body.classList.remove(className);
|
||||
};
|
||||
}, [name]);
|
||||
|
||||
return (
|
||||
<div className={CLASSES.DASHBOARD_PAGE}>
|
||||
<Suspense fallback={''}>
|
||||
|
||||
Reference in New Issue
Block a user