Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/lock-password-row.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { Section } from '../../../components/section';
import { fill, useMessages } from '../../../localization';
import { UserProfileManagedByLabel } from '../user-profile-managed-by';
import { UserProfileSecurityIcon } from '../user-profile-security-icon';
import type { UserProfilePasswordSectionViewProps } from './user-profile-password-section.types';

export function UserProfilePasswordRowView({
Expand All @@ -12,6 +13,7 @@ export function UserProfilePasswordRowView({
return (
<Section.Items>
<Section.Item>
<UserProfileSecurityIcon name='password' />
<Section.Content>
<Section.Description>{hasPassword ? m.masked : m.noPasswordSet}</Section.Description>
</Section.Content>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,28 @@ import { Icon } from '../../components/icon';
import { Section } from '../../components/section';
import { DeviceLaptop } from '../../icons/glyphs/device-laptop';
import { DevicePhone } from '../../icons/glyphs/device-phone';
import { Lock } from '../../icons/glyphs/lock';
import { SecurityLockSquare } from '../../icons/glyphs/security-lock-square';
import { SecurityPasskey } from '../../icons/glyphs/security-passkey';
import { SecurityPhone } from '../../icons/glyphs/security-phone';
import { styles } from './user-profile-security-panel.styles';

export type UserProfileSecurityIconName = 'authenticator' | 'backup-codes' | 'desktop' | 'mobile' | 'passkey' | 'sms';
export type UserProfileSecurityIconName =
| 'authenticator'
| 'backup-codes'
| 'desktop'
| 'mobile'
| 'passkey'
| 'password'
| 'sms';

const icons = {
authenticator: SecurityLockSquare,
'backup-codes': SecurityPhone,
desktop: DeviceLaptop,
mobile: DevicePhone,
passkey: SecurityPasskey,
password: Lock,
sms: SecurityPhone,
} as const;

Expand Down
Loading