Merged in feat/new-passwordinput-component (pull request #3376)
feat(SW-3672): Update PasswordInput component * Update PasswordInput component * Removed some tests not working as expected * Remove IconButton from PasswordInput * Remove IconButton from Input * Merge branch 'master' into feat/new-passwordinput-component Approved-by: Linus Flood
This commit is contained in:
@@ -12,8 +12,8 @@ import { FormSelect } from "@scandic-hotels/design-system/Form/Select"
|
||||
import { Typography } from "@scandic-hotels/design-system/Typography"
|
||||
|
||||
import { getLocalizedLanguageOptions } from "@/constants/languages"
|
||||
import { PasswordInput } from "@scandic-hotels/design-system/PasswordInput"
|
||||
|
||||
import PasswordInput from "@/components/TempDesignSystem/Form/PasswordInput"
|
||||
import useLang from "@/hooks/useLang"
|
||||
import { getFormattedCountryList } from "@/utils/countries"
|
||||
import {
|
||||
@@ -165,8 +165,14 @@ export default function FormContent({ errors }: { errors: FieldErrors }) {
|
||||
defaultMessage: "Current password",
|
||||
})}
|
||||
name="password"
|
||||
errorFormatter={formatFormErrorMessage}
|
||||
/>
|
||||
<PasswordInput
|
||||
data-hj-suppress
|
||||
isNewPassword
|
||||
name="newPassword"
|
||||
errorFormatter={formatFormErrorMessage}
|
||||
/>
|
||||
<PasswordInput data-hj-suppress isNewPassword name="newPassword" />
|
||||
<PasswordInput
|
||||
data-hj-suppress
|
||||
label={intl.formatMessage({
|
||||
@@ -174,6 +180,7 @@ export default function FormContent({ errors }: { errors: FieldErrors }) {
|
||||
defaultMessage: "Retype new password",
|
||||
})}
|
||||
name="retypeNewPassword"
|
||||
errorFormatter={formatFormErrorMessage}
|
||||
/>
|
||||
</section>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user