- added company name to topbar;
This commit is contained in:
@@ -7,15 +7,21 @@ import LogoIcon from '../../../../icons/LogoIcon';
|
||||
import { Button } from 'primereact/button';
|
||||
import TopBarProfileMenu from '../../../../components/TopBarProfileMenu';
|
||||
import NotificationsSidebar from '../../../../components/NotificationsSidebar';
|
||||
import { useStore } from '../../../../store';
|
||||
import { head } from 'ramda';
|
||||
|
||||
const AppTopbar = () => {
|
||||
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="/">
|
||||
<LogoIcon/>
|
||||
</Link>;
|
||||
|
||||
const endContent = <div className="topBar__endContent">
|
||||
{company ? <span className="companyName">{company.companyName}</span> : null}
|
||||
{/*<IconField iconPosition="right">
|
||||
<InputIcon className="pi pi-search"> </InputIcon>
|
||||
<InputText v-model="value1" placeholder={__('Cerca', 'gepafin')} disabled={true}/>
|
||||
|
||||
Reference in New Issue
Block a user