Merge branch 'master' into develop
This commit is contained in:
@@ -7,15 +7,21 @@ import LogoIcon from '../../../../icons/LogoIcon';
|
|||||||
import { Button } from 'primereact/button';
|
import { Button } from 'primereact/button';
|
||||||
import TopBarProfileMenu from '../../../../components/TopBarProfileMenu';
|
import TopBarProfileMenu from '../../../../components/TopBarProfileMenu';
|
||||||
import NotificationsSidebar from '../../../../components/NotificationsSidebar';
|
import NotificationsSidebar from '../../../../components/NotificationsSidebar';
|
||||||
|
import { useStore } from '../../../../store';
|
||||||
|
import { head } from 'ramda';
|
||||||
|
|
||||||
const AppTopbar = () => {
|
const AppTopbar = () => {
|
||||||
const menuLeft = useRef(null);
|
const menuLeft = useRef(null);
|
||||||
|
const companies = useStore().main.companies();
|
||||||
|
const chosenCompanyId = useStore().main.chosenCompanyId();
|
||||||
|
const company = head(companies.filter(o => o.id === chosenCompanyId));
|
||||||
|
|
||||||
const startContent = <Link to="/">
|
const startContent = <Link to="/">
|
||||||
<LogoIcon/>
|
<LogoIcon/>
|
||||||
</Link>;
|
</Link>;
|
||||||
|
|
||||||
const endContent = <div className="topBar__endContent">
|
const endContent = <div className="topBar__endContent">
|
||||||
|
{company ? <span className="companyName">{company.companyName}</span> : null}
|
||||||
{/*<IconField iconPosition="right">
|
{/*<IconField iconPosition="right">
|
||||||
<InputIcon className="pi pi-search"> </InputIcon>
|
<InputIcon className="pi pi-search"> </InputIcon>
|
||||||
<InputText v-model="value1" placeholder={__('Cerca', 'gepafin')} disabled={true}/>
|
<InputText v-model="value1" placeholder={__('Cerca', 'gepafin')} disabled={true}/>
|
||||||
|
|||||||
Reference in New Issue
Block a user