-
Notifications
You must be signed in to change notification settings - Fork 21
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
feat(frontend): adds vip qr code item to the menu #3990
feat(frontend): adds vip qr code item to the menu #3990
Conversation
…r-codes-option-in-menu' into feature(frontend)/displays-vip-qr-codes-option-in-menu # Conflicts: # src/declarations/backend/backend.did.d.ts
…r-codes-option-in-menu' into feature(frontend)/displays-vip-qr-codes-option-in-menu
…plays-vip-qr-codes-option-in-menu # Conflicts: # src/frontend/src/lib/components/core/Menu.svelte
…lements-reward-canister-api
…feature(frontend)/displays-vip-qr-codes-option-in-menu
removes unused code
…feature(frontend)/displays-vip-qr-codes-option-in-menu
…plays-vip-qr-codes-option-in-menu # Conflicts: # src/frontend/src/lib/i18n/en.json # src/frontend/src/lib/services/reward-code.services.ts # src/frontend/src/lib/types/i18n.d.ts # src/frontend/src/tests/lib/services/reward-code.services.spec.ts
@@ -42,6 +48,17 @@ | |||
|
|||
let fromRoute: NavigationTarget | null; | |||
|
|||
let isVip = false; | |||
onMount(async () => { |
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.
will this run everytime we open the Menu
? should it be maybe a state somewhere?
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.
hmm it might be a good idea to but it into a state instead of calling every time
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.
@AntonioVentilii ok nevermind. I don't think that it is necessary to store the state somewhere. The Menu item is only loaded one time and the vip data are loaded in the onMount
function.
<ButtonMenu | ||
ariaLabel={$i18n.navigation.alt.vip_qr_code} | ||
testId={NAVIGATION_MENU_VIP_BUTTON} | ||
on:click={() => {}} |
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.
For now nothing happens if the menu button is clicked. This is implemented in another PR.
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.
just add a TODO
before merging
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.
LGTM
<ButtonMenu | ||
ariaLabel={$i18n.navigation.alt.vip_qr_code} | ||
testId={NAVIGATION_MENU_VIP_BUTTON} | ||
on:click={() => {}} |
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.
just add a TODO
before merging
Motivation
Vip users should be able to see the
VIP QR codes
item into the menu.Changes
Tests
before:
after: