diff --git a/src/app/AuthenticatedApp.js b/src/app/AuthenticatedApp.js index ec7c01e..94bd986 100644 --- a/src/app/AuthenticatedApp.js +++ b/src/app/AuthenticatedApp.js @@ -32,6 +32,7 @@ function AuthenticatedApp() { } layoutType={layoutType} avatarMenuOptions={avatarMenuOptions(navigate, logout)} + user={state.user} /> setAnchorElUser(e.currentTarget)} sx={{ p: 0 }} > - + @@ -125,7 +125,7 @@ function Toolbar({ title, layoutType, avatarMenuOptions }) { onClick={e => setAnchorElUser(e.currentTarget)} sx={{ p: 0 }} > - + diff --git a/src/services/mocks.js b/src/services/mocks.js index 797b3a4..1555222 100644 --- a/src/services/mocks.js +++ b/src/services/mocks.js @@ -523,11 +523,19 @@ const allPeople = [ ]; const user = { - id: '0021564', - username: 'leonardomurca', - name: 'Leonardo', + id: '123', + ra: '0021564', + username: 'leo@gmail.com', + email: 'leo@gmail.com', + password: '#leo1234', // TODO: Remove this! + firstName: 'Leonardo', lastName: 'Murça', token: 'skdfb9458hnsdfsif4w38r9234ry98423', + phone: '31992460019', + avatar: 'https://i.pravatar.cc/300?img=61', + course: 0, + termsAgreed: true, + year: 0, }; const authFailure = {