- updated login page;

- updated registration page;
- created profile page;
- created company profile page;
This commit is contained in:
Vitalii Kiiko
2024-09-27 09:09:48 +02:00
parent 1bd00def4b
commit 478af11cb9
11 changed files with 406 additions and 41 deletions

View File

@@ -1,5 +1,6 @@
import React, { useRef } from 'react';
import { __ } from '@wordpress/i18n';
import { useNavigate } from 'react-router-dom';
// store
import { storeSet, useTrackedStore } from '../../store';
@@ -9,6 +10,7 @@ import { Menu } from 'primereact/menu';
import { Avatar } from 'primereact/avatar';
const TopBarProfileMenu = ({ menuLeftRef }) => {
const navigate = useNavigate();
const userData = useTrackedStore().main.userData();
const fulleName = `${userData.firstName} ${userData.lastName}`;
@@ -26,12 +28,18 @@ const TopBarProfileMenu = ({ menuLeftRef }) => {
);
}
},
/*{
{
label: __('Il mio profilo', 'gepafin'),
command: () => {
console.log('go to profile page')
navigate('/profilo')
}
},*/
},
{
label: __('Profilo aziendale', 'gepafin'),
command: () => {
navigate('/profilo-aziendale')
}
},
{
separator: true
},