Skip to content

Commit 024f671

Browse files
authored
feat: show active org in org list page (#6382)
* feat: use isActive prop to show active status * feat: style active status element * fix: prettier * chore: fix typo
1 parent ef3fa8e commit 024f671

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

src/identity/components/OrganizationListTab/OrgList.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export const OrgList: FC<Props> = ({
113113
regionCode={org.regionCode}
114114
regionName={org.regionName}
115115
provisioningStatus={org.provisioningStatus}
116+
isActive={org.isActive}
116117
/>
117118
))}
118119
</>

src/identity/components/OrganizationListTab/OrganizationCard.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,3 +50,14 @@
5050
color: $cf-white;
5151
}
5252
}
53+
54+
.account--organizations-tab-active-org {
55+
border-radius: 50%;
56+
border-style: solid;
57+
border-width: 5px;
58+
color: $c-rainforest;
59+
display: inline-block;
60+
left: 14px;
61+
margin-top: 6px;
62+
position: absolute;
63+
}

src/identity/components/OrganizationListTab/OrganizationCard.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import './OrganizationCard.scss'
1515

1616
interface OrgCardProps {
1717
name: string
18+
isActive: boolean
1819
provider: string
1920
provisioningStatus?: string
2021
regionCode: string
@@ -34,6 +35,7 @@ const tooltipContent = (
3435

3536
export const OrganizationCard: FC<OrgCardProps> = ({
3637
name,
38+
isActive,
3739
provider,
3840
provisioningStatus,
3941
regionCode,
@@ -52,6 +54,9 @@ export const OrganizationCard: FC<OrgCardProps> = ({
5254
justifyContent={JustifyContent.SpaceBetween}
5355
testID="account--organizations-tab-orgs-card"
5456
>
57+
{isActive && (
58+
<span className="account--organizations-tab-active-org"></span>
59+
)}
5560
<ResourceCard.Name
5661
name={name}
5762
className="account--organizations-tab-orgs-card-orgname"

0 commit comments

Comments
 (0)