-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
feat(navbar): display currently logged in user name #2236
feat(navbar): display currently logged in user name #2236
Conversation
… profile dropdown
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/hospitalrun/hospitalrun-frontend/g3faleqak |
@@ -13,6 +13,7 @@ export default { | |||
required: 'Password is required.', | |||
}, | |||
}, | |||
success: 'Currently signed in as ', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use currentlySignedInAs
as the key instead of success
. I think that it makes it more clear what the key is supposed to represent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's leave off the trailing space in the key and make whoever uses this key put a space in.
@@ -170,13 +170,22 @@ describe('Navbar', () => { | |||
}) | |||
|
|||
describe('account', () => { | |||
it('should render an account link list', () => { | |||
it("should render a link with the user's identification", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There should be a test to make sure that it renders the user's first and last name
…nslation key more clearly fix HospitalRun#2236
…/AlexTan331/hospitalrun-frontend into display-user-in-profile-dropdown
Fixes #2225 .
Changes proposed in this pull request:
No new dependency added