-
Notifications
You must be signed in to change notification settings - Fork 35
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
refactor(osp): use new company role check #1390
refactor(osp): use new company role check #1390
Conversation
PR related to #1328 |
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.
Please check or delete options that are not relevant from PR checklist
useEffect(() => { | ||
if ( | ||
companyDetails?.companyRole.includes( | ||
CompanyRoleEnum.ONBOARDING_SERVICE_PROVIDER |
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.
Please also remove ONBOARDING_SERVICE_PROVIDER from CompanyRoleEnum from userApiSlice.ts
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.
why? This is being used in ConnectorTypeSelection.tsx
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.
Please use COMPANY_ROLES enum from constants.ts file and remove CompanyRoleEnum(from userApiSlice.ts) and its usage as it is a duplicate enum
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.
done
…ile. use updated enum from constants
Quality Gate passedIssues Measures |
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
Description
remove customised logic to check company role info in onboarding service provider (osp) page and header component. use company role check in config file to allow user to navigate to osp page.
Chnagelog
Why
remove custom check for company roles
Issue
#1108
Checklist
Please delete options that are not relevant.