chore: adjust PasswordField order

This commit is contained in:
Paul Pan 2024-03-15 14:30:52 +08:00
parent 2b635e7426
commit 21e5244807

View File

@ -29,14 +29,6 @@ export const PasswordField = (
<FormControl>
<FormLabel htmlFor="password">Password</FormLabel>
<InputGroup>
<InputRightElement>
<IconButton
variant="text"
aria-label={isOpen ? "Mask password" : "Reveal password"}
icon={isOpen ? <HiEyeOff /> : <HiEye />}
onClick={onClickReveal}
/>
</InputRightElement>
<Input
id="password"
ref={inputRef}
@ -46,6 +38,14 @@ export const PasswordField = (
required
{...props}
/>
<InputRightElement>
<IconButton
variant="text"
aria-label={isOpen ? "Mask password" : "Reveal password"}
icon={isOpen ? <HiEyeOff /> : <HiEye />}
onClick={onClickReveal}
/>
</InputRightElement>
</InputGroup>
</FormControl>
);