Skip to content

Commit 9101e0e

Browse files
committed
fix: fix format
1 parent 94ff4ca commit 9101e0e

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

site/src/pages/ManagementSettingsPage/IdpSyncPage/IdpPillList.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,7 @@ const OverflowPill: FC<OverflowPillProps> = ({ roles }) => {
7575
}}
7676
>
7777
{roles.map((role) => (
78-
<Pill
79-
key={role}
80-
css={isUUID(role) ? styles.errorPill : styles.pill}
81-
>
78+
<Pill key={role} css={isUUID(role) ? styles.errorPill : styles.pill}>
8279
{role}
8380
</Pill>
8481
))}

site/src/utils/uuid.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
export const isUUID = (text:string) => {
2-
const UUID = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
1+
export const isUUID = (text: string) => {
2+
const UUID =
3+
/^[0-9a-f]{8}-[0-9a-f]{4}-[0-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;
34
return UUID.test(text);
4-
}
5-
5+
};

0 commit comments

Comments
 (0)