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:
a.bouhuolia
2021-02-25 10:51:27 +02:00
parent 5a58e9bafd
commit 9e2c995813
84 changed files with 1019 additions and 682 deletions

View File

@@ -51,6 +51,6 @@ function Dashboard({
<DrawersContainer />
</DashboardLoadingIndicator>
);
}
}
export default compose(withSettingsActions)(Dashboard);

View File

@@ -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}

View File

@@ -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">

View File

@@ -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={''}>