-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature/profile menu #27
base: main
Are you sure you want to change the base?
Conversation
<ProfileMenu | ||
name={`${user.given_name} ${user.family_name}`} | ||
agency="Zenika" | ||
lastLoginDate={`${new Date(user.updated_at).toLocaleDateString( | ||
"en-GB", | ||
)}`} | ||
image={user.picture} | ||
> | ||
<ProfileLink | ||
icon="logout" | ||
text="Logout" | ||
href="/api/auth/logout" | ||
></ProfileLink> | ||
</ProfileMenu> |
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.
How would this component work in an open sourced thezaurus ?
Is the @zenika/internal-ui-components-react open-sourceable too ? 🤔
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.
Nice touch 👍
Let's double check if this is compatible with open sourcing the project
There is some friction tied to open sourcing thezaurus yes, I guess we'd have to publish the components to the public npm, there's not much stopping that from happening but it's pretty "alpha" for the moment. |
This replaces the existing logout button with one similar to the skillz app. I've created this component using stencil in a separate package intended to be used as a component library for internal apps.
Here's what it looks like in dark
and light mode
I'm not sure where to take the discussion on whether splitting out these components is a good idea but it seems to work fairly well after quite a bit of config tweaking. I will chat about it with some of the technical directors.