Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timezone in usermenu #1764

Merged
merged 13 commits into from
Nov 8, 2019
Merged

Timezone in usermenu #1764

merged 13 commits into from
Nov 8, 2019

Conversation

bjoernricks
Copy link
Contributor

@bjoernricks bjoernricks commented Nov 8, 2019

Checklist:

It doesn't need to be a class component.
Add our first simple custom hook to get the current users timezone from
the store.
Another very simple hook to provide the global gmp object.
Without the connect function the DateTime component even looks much
cleaner and simpler to understand.
Update user menu to display also the timezone in the session timeout.
With react router 5.1 we can use useParams, useLocation and useHistory.
Add a simple hook to get the current users name.
This allows to simplify the UserMenu by dropping the proptypes, HOC
composition and store connection.
@bjoernricks bjoernricks marked this pull request as ready for review November 8, 2019 10:28
@swaterkamp
Copy link
Member

Love it!

@swaterkamp swaterkamp merged commit b94a306 into greenbone:gsa-9.0 Nov 8, 2019
@bjoernricks bjoernricks deleted the timezone-in-usermenu branch November 8, 2019 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants