Merge branch 'master' into develop

This commit is contained in:
Vitalii Kiiko
2025-01-24 12:32:56 +01:00

View File

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