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

fix(ui): update util to allow matching the homepage as the active icon #15757

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

TCL735
Copy link
Contributor

@TCL735 TCL735 commented Nov 5, 2019

Closes #15734

@TCL735 TCL735 requested a review from a team November 5, 2019 00:24
@ghost ghost requested review from 121watts and hoorayimhelping and removed request for a team November 5, 2019 00:24
ui/src/pageLayout/constants/navItemActivation.ts Outdated Show resolved Hide resolved
ui/src/pageLayout/utils/navItemActivation.ts Outdated Show resolved Hide resolved
ui/src/pageLayout/utils/navItemActivation.ts Outdated Show resolved Hide resolved
@TCL735 TCL735 force-pushed the fix_15734_homepage_nav_icon_active branch from ca5544f to 0086763 Compare November 5, 2019 00:53
Copy link
Contributor

@hoorayimhelping hoorayimhelping left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤙 nice work, again!

one little suggestion / nit, but it's totally optional and only do it if it strikes your fancy.

true
)
})
})
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️ love these tests!

only nit / style suggestion i could provide is: instead of using variables, just hard code the values in the test - it's a little more repetitive, but i find it makes the tests more explicit and it usually makes the intent of the test and the code a little easier to follow. again, a nit / suggestion, feel free to ignore.

expect(getNavItemActivation(['tokens'], `/orgs/3491cbaef55b4559////////tokens')).toEqual(true)

@TCL735 TCL735 merged commit 5cafe04 into master Nov 5, 2019
@TCL735 TCL735 deleted the fix_15734_homepage_nav_icon_active branch November 5, 2019 01:27
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.

Homepage nav icon never in "active" state
3 participants