-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relocated prop types | refactored user role identifier - changed to s…
…ystemRoleZUID instead of role name
- Loading branch information
Showing
7 changed files
with
140 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...pps/settings/src/app/views/User/Workflows/authorized/forms-dialogs/DeactivationDialog.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
src/apps/settings/src/app/views/User/Workflows/constants.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
export type ColorMenu = { | ||
label: string; | ||
value: string; | ||
}; | ||
|
||
export type RoleMenu = { | ||
label: string; | ||
value: string; | ||
}; | ||
|
||
export const colorMenu: ColorMenu[] = [ | ||
{ label: "Blue", value: "#0BA5EC" }, | ||
{ label: "Deep Purple", value: "#4E5BA6" }, | ||
{ label: "Green", value: "#12b76a" }, | ||
{ label: "Orange", value: "#FF5C08" }, | ||
{ label: "Pink", value: "#EE46BC" }, | ||
{ label: "Purple", value: "#7A5AF8" }, | ||
{ label: "Red", value: "#F04438" }, | ||
{ label: "Rose", value: "#F63D68" }, | ||
{ label: "Yellow", value: "#F79009" }, | ||
{ label: "Grey", value: "#667085" }, | ||
]; | ||
|
||
const ADMIN_ZUID = "31-71cfc74-4dm13"; | ||
const OWNER_ZUID = "31-71cfc74-0wn3r"; | ||
|
||
export const AUTHORIZED_ROLES: string[] = [ADMIN_ZUID, OWNER_ZUID]; | ||
|
||
export type AuthorizedRole = typeof AUTHORIZED_ROLES[number]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.