-
Notifications
You must be signed in to change notification settings - Fork 21
fix(PM-3454): qa feedbacks on phone number #1417
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
Conversation
|
|
||
| export const ADMIN_ROLES = [UserRole.administrator] | ||
|
|
||
| export const PHONE_NUMBER_ROLES = [ |
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.
[maintainability]
Consider using the UserRole enum for the roles in PHONE_NUMBER_ROLES to ensure consistency and avoid potential typos or mismatches with other parts of the codebase.
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.
@hentrymartin please use the UserRole enum. We try to avoid hardcoded roles.
src/apps/profiles/src/member-profile/phones/ModifyPhonesModal/ModifyPhonesModal.tsx
Show resolved
Hide resolved
src/apps/profiles/src/member-profile/phones/ModifyPhonesModal/ModifyPhonesModal.tsx
Show resolved
Hide resolved
src/apps/profiles/src/member-profile/phones/ModifyPhonesModal/ModifyPhonesModal.tsx
Show resolved
Hide resolved
src/apps/profiles/src/member-profile/phones/ModifyPhonesModal/ModifyPhonesModal.tsx
Show resolved
Hide resolved
src/apps/profiles/src/member-profile/phones/ModifyPhonesModal/ModifyPhonesModal.tsx
Show resolved
Hide resolved
src/libs/ui/lib/components/form/form-groups/form-input/input-select/InputSelect.tsx
Show resolved
Hide resolved
src/libs/ui/lib/components/form/form-groups/form-input/input-select/InputSelect.tsx
Show resolved
Hide resolved
|
|
||
| export const ADMIN_ROLES = [UserRole.administrator] | ||
|
|
||
| export const PHONE_NUMBER_ROLES = [ |
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.
@hentrymartin please use the UserRole enum. We try to avoid hardcoded roles.
|
@kkartunov I've fixed the PR based on the suggestion. Can you please review it again? |
Related JIRA Ticket:
https://topcoder.atlassian.net/browse/PM-3454
What's in this PR?
Ticket link - https://topcoder.atlassian.net/browse/PM-3404