Skip to content

Commit

Permalink
Fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
avatus committed Sep 17, 2024
1 parent b9b6375 commit 3e20219
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions web/packages/teleport/src/Users/Users.story.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,10 @@ export const Loaded = () => {
);
};

export const UsersNotEqualMAUNotice = () => {
export const UsersNotEqualMauNotice = () => {
return (
<MemoryRouter>
<Users {...sample} showMAUInfo={true} />
<Users {...sample} showMauInfo={true} />
</MemoryRouter>
);
};
Expand Down Expand Up @@ -147,6 +147,6 @@ const sample = {
InviteCollaborators: null,
onEmailPasswordResetClose: () => null,
EmailPasswordReset: null,
showMAUInfo: false,
showMauInfo: false,
onDismissUsersMAUNotice: () => null,
};
6 changes: 3 additions & 3 deletions web/packages/teleport/src/Users/Users.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ describe('invite collaborators integration', () => {
inviteCollaboratorsOpen: false,
onEmailPasswordResetClose: () => undefined,
EmailPasswordReset: null,
showMAUInfo: false,
showMauInfo: false,
onDismissUsersMAUNotice: () => null,
};
});
Expand Down Expand Up @@ -137,7 +137,7 @@ describe('Users not equal to MAU Notice', () => {
inviteCollaboratorsOpen: false,
onEmailPasswordResetClose: () => undefined,
EmailPasswordReset: null,
showMAUInfo: true,
showMauInfo: true,
onDismissUsersMAUNotice: jest.fn(),
};
});
Expand Down Expand Up @@ -194,7 +194,7 @@ describe('email password reset integration', () => {
inviteCollaboratorsOpen: false,
onEmailPasswordResetClose: () => undefined,
EmailPasswordReset: null,
showMAUInfo: false,
showMauInfo: false,
onDismissUsersMAUNotice: () => null,
};
});
Expand Down
8 changes: 4 additions & 4 deletions web/packages/teleport/src/Users/Users.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ export function Users(props: State) {
onStartDelete,
onStartEdit,
onStartReset,
showMAUInfo,
showMauInfo,
onDismissUsersMAUNotice,
onClose,
onCreate,
Expand Down Expand Up @@ -100,7 +100,7 @@ export function Users(props: State) {
<Indicator />
</Box>
)}
{showMAUInfo && (
{showMauInfo && (
<Alert
data-testid="users-not-mau-alert"
dismissible
Expand All @@ -115,8 +115,8 @@ export function Users(props: State) {
Note: The users displayed here are not an accurate reflection of
Monthly Active Users (MAU). For example, users who log in through
Single Sign-On (SSO) providers such as Okta will only appear here
temporarily and disappear once they terminate their active sessions.
For more information, read our documentation on{' '}
temporarily and disappear once their sessions expire. For more
information, read our documentation on{' '}
<Link
target="_blank"
href="https://goteleport.com/docs/usage-billing/#monthly-active-users"
Expand Down
4 changes: 2 additions & 2 deletions web/packages/teleport/src/Users/useUsers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ export default function useUsers({

// if the cluster has billing enabled, and usageBasedBilling, and they haven't acknowledged
// the info yet
const showMAUInfo =
const showMauInfo =
ctx.getFeatureFlags().billing &&
cfg.isUsageBasedBilling &&
!storageService.getUsersMAUAcknowledged();
Expand All @@ -156,7 +156,7 @@ export default function useUsers({
inviteCollaboratorsOpen,
onEmailPasswordResetClose,
EmailPasswordReset,
showMAUInfo,
showMauInfo,
onDismissUsersMAUNotice,
};
}
Expand Down

0 comments on commit 3e20219

Please sign in to comment.