1+ import React from 'react' ;
2+ import { Fingerprint , InsertEmoticon } from "@material-ui/icons" ;
3+ import { FormattedMessage } from '@openimis/fe-core' ;
14import ProfileToolbarContribution from "./components/ProfileToolbarContribution" ;
25import ProfileMainMenu from "./components/ProfileMainMenu" ;
36import ChangePasswordPage from "./components/ChangePasswordPage" ;
@@ -11,10 +14,23 @@ const DEFAULT_CONFIG = {
1114 { path : "profile/changePassword" , component : ChangePasswordPage } ,
1215 { path : "profile/myProfile" , component : MyProfilePage } ,
1316 ] ,
14- "core.MainMenu" : [ ProfileMainMenu ] ,
17+ "core.MainMenu" : [ { name : ' ProfileMainMenu' , component : ProfileMainMenu } ] ,
1518 reducers : [ { key : "profile" , reducer } ] ,
16- "core.AppBar" : [ ProfileToolbarContribution ]
17-
19+ "core.AppBar" : [ ProfileToolbarContribution ] ,
20+ "profile.MainMenu" : [
21+ {
22+ text : < FormattedMessage module = "profile" id = "menu.myProfile" /> ,
23+ icon : < InsertEmoticon /> ,
24+ route : "/profile/myProfile" ,
25+ id : "profile.myProfile" ,
26+ } ,
27+ {
28+ text : < FormattedMessage module = "profile" id = "menu.changePassword" /> ,
29+ icon : < Fingerprint /> ,
30+ route : "/profile/changePassword" ,
31+ id : "profile.changePassword" ,
32+ }
33+ ] ,
1834} ;
1935
2036export const ProfileModule = ( cfg ) => {
0 commit comments