From 9a81380039c1e2a35d9b78d4a0d24b6e404b9747 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leonardo=20Mur=C3=A7a?= Date: Wed, 14 Sep 2022 16:37:26 -0300 Subject: [PATCH] Update user mock and use avatar image --- src/app/AuthenticatedApp.js | 1 + src/components/Toolbar/index.js | 6 +++--- src/services/mocks.js | 14 +++++++++++--- 3 files changed, 15 insertions(+), 6 deletions(-) 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 = {