Skip to content

Commit

Permalink
fix(clerk-js): Fix email card subtitle (#2621)
Browse files Browse the repository at this point in the history
  • Loading branch information
anagstef authored Jan 17, 2024
1 parent 45919f4 commit 1d2e9ee
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
2 changes: 2 additions & 0 deletions .changeset/three-planes-tell.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
19 changes: 9 additions & 10 deletions packages/clerk-js/src/ui/components/UserProfile/EmailForm.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import React from 'react';

import { useWizard, Wizard } from '../../common';
import { useEnvironment } from '../../contexts';
import { localizationKeys, Text } from '../../customizables';
import { localizationKeys } from '../../customizables';
import type { FormProps } from '../../elements';
import { Form, FormButtons, FormContainer, useCardState, withCardStateProvider } from '../../elements';
import { handleError, useFormControl } from '../../utils';
Expand Down Expand Up @@ -51,16 +51,15 @@ export const EmailForm = withCardStateProvider((props: EmailFormProps) => {

return (
<Wizard {...wizard.props}>
<FormContainer headerTitle={title}>
<FormContainer
headerTitle={title}
headerSubtitle={
preferEmailLinks
? localizationKeys('userProfile.emailAddressPage.emailLink.formHint')
: localizationKeys('userProfile.emailAddressPage.emailCode.formHint')
}
>
<Form.Root onSubmit={addEmail}>
<Text
localizationKey={
preferEmailLinks
? localizationKeys('userProfile.emailAddressPage.emailLink.formHint')
: localizationKeys('userProfile.emailAddressPage.emailCode.formHint')
}
colorScheme='neutral'
/>
<Form.ControlRow elementId={emailField.id}>
<Form.PlainInput
{...emailField.props}
Expand Down

0 comments on commit 1d2e9ee

Please sign in to comment.