File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed
DeploymentSettingsPage/IdpOrgSyncPage
ManagementSettingsPage/IdpSyncPage Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -7,15 +7,12 @@ import {
7
7
} from "components/Popover/Popover" ;
8
8
import type { FC } from "react" ;
9
9
import { cn } from "utils/cn" ;
10
+ import { UUID } from "utils/idp" ;
10
11
11
12
interface OrganizationPillsProps {
12
13
organizations : readonly string [ ] ;
13
14
}
14
15
15
- // used to check if the organization is a UUID
16
- const UUID =
17
- / ^ [ 0 - 9 a - f ] { 8 } - [ 0 - 9 a - f ] { 4 } - [ 0 - 5 ] [ 0 - 9 a - f ] { 3 } - [ 8 9 a b ] [ 0 - 9 a - f ] { 3 } - [ 0 - 9 a - f ] { 12 } $ / i;
18
-
19
16
export const OrganizationPills : FC < OrganizationPillsProps > = ( {
20
17
organizations,
21
18
} ) => {
Original file line number Diff line number Diff line change @@ -7,15 +7,12 @@ import {
7
7
PopoverTrigger ,
8
8
} from "components/Popover/Popover" ;
9
9
import type { FC } from "react" ;
10
+ import { UUID } from "utils/idp" ;
10
11
11
12
interface PillListProps {
12
13
roles : readonly string [ ] ;
13
14
}
14
15
15
- // used to check if the role is a UUID
16
- const UUID =
17
- / ^ [ 0 - 9 a - f ] { 8 } - [ 0 - 9 a - f ] { 4 } - [ 0 - 5 ] [ 0 - 9 a - f ] { 3 } - [ 8 9 a b ] [ 0 - 9 a - f ] { 3 } - [ 0 - 9 a - f ] { 12 } $ / i;
18
-
19
16
export const IdpPillList : FC < PillListProps > = ( { roles } ) => {
20
17
return (
21
18
< Stack direction = "row" spacing = { 1 } >
Original file line number Diff line number Diff line change
1
+ export const UUID =
2
+ / ^ [ 0 - 9 a - f ] { 8 } - [ 0 - 9 a - f ] { 4 } - [ 0 - 5 ] [ 0 - 9 a - f ] { 3 } - [ 8 9 a b ] [ 0 - 9 a - f ] { 3 } - [ 0 - 9 a - f ] { 12 } $ / i;
You can’t perform that action at this time.
0 commit comments