- updated login page;
- updated registration page; - created profile page; - created company profile page;
This commit is contained in:
@@ -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
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user